TextDirection.Val Property

Direction of Text Flow.Represents the attribte in schema: w:val

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

Syntax

'Declaration
<SchemaAttrAttribute(, "val")> _
Public Property Val As EnumValue(Of TextDirectionValues)
    Get
    Set
'Usage
Dim instance As TextDirection
Dim value As EnumValue(Of TextDirectionValues)

value = instance.Val

instance.Val = value
[SchemaAttrAttribute(, "val")]
public EnumValue<TextDirectionValues> Val { get; set; }

Property Value

Type: DocumentFormat.OpenXml.EnumValue<TextDirectionValues>
Returns EnumValue<T>.

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the direction of the text flow for this object.

Consider a document with a section in which text shall 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 shall go bottom to top, and left to right.

The possible values for this attribute are defined by the ST_TextDirection simple type.

See Also

Reference

TextDirection Class

TextDirection Members

DocumentFormat.OpenXml.Wordprocessing Namespace