BodyProperties.Vertical Property

Vertical Text.Represents the attribte in schema: vert

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

Syntax

'Declaration
<SchemaAttrAttribute(, "vert")> _
Public Property Vertical As EnumValue(Of TextVerticalValues)
    Get
    Set
'Usage
Dim instance As BodyProperties
Dim value As EnumValue(Of TextVerticalValues)

value = instance.Vertical

instance.Vertical = value
[SchemaAttrAttribute(, "vert")]
public EnumValue<TextVerticalValues> Vertical { get; set; }

Property Value

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

Remarks

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

Determines if the text within the given text body should be displayed vertically. If this attribute is omitted, then a value of horz, meaning no vertical text, is implied.

Consider the case where the user needs to display text that appears vertical and has a right to left flow with respect to its columns.

<p:txBody>
  <a:bodyPr vert="wordArtVertRtl" … />
  …
  <a:p>
    …
    <a:t>This is</a:t>
    …
  </a:p>
  <a:p>
    …
    <a:t>some text.</a:t>
    …
  </a:p>
</p:txBody>

In the above sample DrawingML there are two paragraphs denoting a separation between the text otherwise which are known as either a line or paragraph break. Because wordArtVertRtl is used here this text will not only be displayed in a stacked manner flowing from top to bottom but also have the first paragraph be displayed to the right of the second. This is because it is both vertical text and right to left.

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

See Also

Reference

BodyProperties Class

BodyProperties Members

DocumentFormat.OpenXml.Drawing Namespace