# OfficeTextTabStops

Immutable paragraph tab settings shared by SVG, raster and PDF layout.

Class 

`OfficeIMO.Drawing`

**Namespace**

`OfficeIMO.Drawing`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OfficeTextTabStops.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextTabStops.cs#L63)

**Modifiers**

sealed

Immutable paragraph tab settings shared by SVG, raster and PDF layout.

## Inheritance

- object
- OfficeTextTabStops

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 2

- Property [OfficeRichTextParagraph.TabStops](/api/core/officeimo-drawing-officerichtextparagraph/#property-tabstops)
- Method [OfficeTextTabStops.WithParagraphAlignment](/api/core/officeimo-drawing-officetexttabstops/#method-withparagraphalignment-boolean)

### Accepted by parameters 1

- Method [OfficeRichTextParagraph.WithTabStops](/api/core/officeimo-drawing-officerichtextparagraph/#method-withtabstops-officeimo-drawing-officetexttabstops) parameter `tabStops`

Filter members 

Show inherited

## Constructors

`public OfficeTextTabStops(IReadOnlyList<OfficeTextTabStop> stops, double defaultInterval = 36, double origin = 0)` [#](#constructor-ctor-collections-generic-ireadonlylist-officeimo-drawing-officetexttabstop-double-double)

[OfficeTextTabStops.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextTabStops.cs#L63)

Creates sorted, unique stops with a repeating default interval after the last explicit stop.

Parameters

**stops System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.OfficeTextTabStop> required**

At most 256 explicit stops; the collection is copied.

**defaultInterval double = 36 optional**

Positive distance between default stops.

**origin double = 0 optional**

Tab origin relative to the paragraph's inner left margin. May be negative.

## Methods

`public OfficeTextTabStops WithParagraphAlignment(bool align = true)` [#](#method-withparagraphalignment-boolean)

[OfficeTextTabStops.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextTabStops.cs#L88)

Returns independent settings that opt tabbed lines into or out of paragraph alignment.

Parameters

**align bool = true optional**

True applies paragraph center or right alignment to the entire tabbed line; false keeps the fixed tab grid.

Returns

`OfficeTextTabStops` A snapshot with the same stops, default interval and origin.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyList<OfficeTextTabStop> Stops { get; }` [#](#property-stops)

[OfficeTextTabStops.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextTabStops.cs#L75)

Sorted snapshot of explicit stops.

`public double DefaultInterval { get; }` [#](#property-defaultinterval)

[OfficeTextTabStops.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextTabStops.cs#L77)

Distance between repeating default stops.

`public double Origin { get; }` [#](#property-origin)

[OfficeTextTabStops.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextTabStops.cs#L79)

Origin relative to the paragraph's inner left margin.

`public bool AlignWithParagraph { get; }` [#](#property-alignwithparagraph)

[OfficeTextTabStops.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.Core/OfficeTextTabStops.cs#L82)

Whether tabbed lines follow the paragraph's center or right alignment. False keeps the fixed tab grid.

<!-- PowerForge markdown artifact sha256:0428797C5EA6CADF420DAD326D2880DE3D2B92C4728E1D3DC6BB28D835E984FA -->
