TextDirection class

Office 2013 and later

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

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

public class TextDirection : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

textDirection (Paragraph Text Flow Direction)

This element specifies the direction of the text flow for this 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 the paragraph shall inherit the text flow settings from the parent section.

[Example: Consider a document with a paragraph in which text should flow bottom to top vertically, and left to right horizontally. This setting would be specified with the following WordprocessingML:

<w:pPr>
  <w:textFlow w:val="btLr" />
</w:pPr>

The textFlow element specifies via the btLr value in the val attribute that the text flow should go bottom to top, and left to right. end example]

Parent Elements

pPr (§17.3.1.26); pPr (§17.3.1.25); pPr (§17.7.5.2); pPr (§17.7.6.1); pPr (§17.9.23); pPr (§17.7.8.2)

Attributes

Description

val (Direction of Text Flow)

Specifies the direction of the text flow for this object.

[Example: Consider a document with a section in which text must flow bottom to top vertically, and left to right horizontally. This setting requires the following WordprocessingML:

<w:sectPr>
  …  <w:textDirection w:val="btLr" />
</w:sectPr>

The textDirection element specifies via the btLr value in the val attribute that the text flow must go bottom to top, and left to right. end example]

The possible values for this attribute are defined by the ST_TextDirection simple type (§17.18.93).

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

[ISO/IEC 29500-1 1st Edition]

textDirection (Table Cell Text Flow Direction)

This element specifies the direction of the text flow for this table cell.

If this element is omitted on a given table cell, 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 the table cell shall inherit the text flow settings from the parent section.

[Example: Consider a table with one cell in which all the table cell's text flow is top to bottom - right to left:

Text in this table cell

This table cell would specify this text flow using the following WordprocessingML:

<w:tc>
  <w:tcPr>
    …
    <w:textDirection w:val="tbRl" />
  </w:tcPr>
  …
</w:tc>

The textDirection element specifies via the tbRl value in the val attribute that the text flow should go top to bottom, then right to left. end example]

Parent Elements

tcPr (§17.7.6.8); tcPr (§17.7.6.9); tcPr (§17.4.70); tcPr (§17.4.71)

Attributes

Description

val (Direction of Text Flow)

Specifies the direction of the text flow for this object.

[Example: Consider a document with a section in which text must flow bottom to top vertically, and left to right horizontally. This setting requires the following WordprocessingML:

<w:sectPr>
  …  <w:textDirection w:val="btLr" />
</w:sectPr>

The textDirection element specifies via the btLr value in the val attribute that the text flow must go bottom to top, and left to right. end example]

The possible values for this attribute are defined by the ST_TextDirection simple type (§17.18.93).

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

[ISO/IEC 29500-1 1st Edition]

textDirection (Text Flow Direction)

This element specifies the direction of the text flow for this section.

[Example: Consider a document with a section in which text must flow bottom to top vertically, and left to right horizontally. This setting requires the following WordprocessingML:

<w:sectPr>
  …  <w:textDirection w:="btLr" />
</w:sectPr>

The textDirection element specifies via the btLr value in the attribute that the text flow must go bottom to top, and left to right. end example]

Parent Elements

sectPr (§17.6.17); sectPr (§17.6.18); sectPr (§17.6.19)

Attributes

Description

val (Direction of Text Flow)

Specifies the direction of the text flow for this object.

[Example: Consider a document with a section in which text must flow bottom to top vertically, and left to right horizontally. This setting requires the following WordprocessingML:

<w:sectPr>
  …  <w:textDirection w:val="btLr" />
</w:sectPr>

The textDirection element specifies via the btLr value in the val attribute that the text flow must go bottom to top, and left to right. end example]

The possible values for this attribute are defined by the ST_TextDirection simple type (§17.18.93).

[Note: The W3C XML Schema definition of this element’s content model (CT_TextDirection) 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.
Show: