Share via


TextAlignment.Val Property

Vertical Character Alignment Position.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 VerticalTextAlignmentValues)
    Get
    Set
'Usage
Dim instance As TextAlignment
Dim value As EnumValue(Of VerticalTextAlignmentValues)

value = instance.Val

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

Property Value

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

Remarks

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

Specifies the type of vertical alignment which shall be used to align the characters on each line in the current paragraph.

Consider a paragraph of text of different font sizes which shall be aligned based on the baseline point of each character in each line. This requirement would be specified as follows in the WordprocessingML:

<w:pPr>
  <w:textAlignment w:val="baseLine" />
</w:pPr>

The resulting text would be aligned to the baseline for each character on the line.

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

See Also

Reference

TextAlignment Class

TextAlignment Members

DocumentFormat.OpenXml.Wordprocessing Namespace