Export (0) Print
Expand All

Tabs class

Defines the Tabs Class. When the object is serialized out as xml, its qualified name is w:tabs.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class Tabs : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

tabs (Set of Custom Tab Stops)

This element specifies a sequence of custom tab stops which shall be used for any tab characters in the current paragraph.

If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (i.e. that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then no custom tab stops shall be used for this paragraph.

As well, this property is additive - tab stops at each level in the style hierarchy are added to each other to determine the full set of tab stops for the paragraph. A hanging indent specified via the hanging attribute on the ind element (§ shall also always implicitly create a custom tab stop at its location.

[Example: Consider a paragraph which contains two custom tab stops at 1.5" and 3.5", respectively. These two tab stops would be contained within a tabs element defining the set of tab stops of the paragraph as follows:

    <w:tab w:val="left" w:pos="2160" /> 
    <w:tab w:val="left" w:pos="5040" /> 

The tabs element specifies all of the customized tab stops for the current paragraph. end example]

Parent Elements

pPr (§; pPr (§; pPr (§; pPr (§; pPr (§17.9.23); pPr (§

Child Elements


tab (Custom Tab Stop)


[Note: The W3C XML Schema definition of this element’s content model (CT_Tabs) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2014 Microsoft