w:tabs (Custom Tab Stops)
Container for one or more custom tab stop definitions within a paragraph.
Parent elements
Description
w:tabs is the custom tab stop list for a paragraph, overriding the document default tab interval. It is defined in ECMA-376 Part 1 §17.3.1.38.
w:tabs is a child of w:pPr and contains one or more w:tab elements. Each w:tab specifies a position, alignment, and optional leader character. Use w:val="clear" to remove an inherited tab stop from a base style.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
| (none) | — | — | Tab stops are expressed via w:tab child elements. |
Each w:tab child uses the following attributes:
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:val |
ST_TabJc |
left, center, right, decimal, bar, clear, num |
Tab stop alignment type. clear removes an inherited stop. |
w:pos |
ST_SignedTwipsMeasure |
Integer in twips from left indent. | Position of the tab stop. |
w:leader |
ST_TabTlc |
none, dot, hyphen, underscore, heavy, middleDot |
Character used to fill space to the tab stop. |
Examples
<!-- Right-aligned tab at 8640 twips (6 inches) with dot leader -->
<w:tabs>
<w:tab w:val="right" w:pos="8640" w:leader="dot"/>
</w:tabs>
new Tabs(
new TabStop
{
Val = TabStopValues.Right,
Position = 8640,
Leader = TabStopLeaderCharValues.Dot
});