Defines the TextAlignment Class. When the object is serialized out as xml, its qualified name is w:textAlignment.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
textAlignment (Vertical Character Alignment on Line)
This element specifies the vertical alignment of all text on each line displayed within a paragraph. If the line height (before any added spacing) is larger than one or more characters on the line, all characters are aligned to each other as specified by this element.
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 vertical alignment of all characters on the line shall be automatically determined by the consumer.
[Example: Consider a paragraph of text of different font sizes, as follows:
If the text on this paragraph must be aligned based on the top point of the maximum character height, that requirement would be specified as follows in the WordprocessingML:
<w:pPr> <w:textAlignment w:val="top" /> </w:pPr>
The resulting text would be top aligned, as follows:
The characters are all aligned to the maximum character extent on the line. end example]
pPr (§126.96.36.199); pPr (§188.8.131.52); pPr (§184.108.40.206); pPr (§220.127.116.11); pPr (§17.9.23); pPr (§18.104.22.168)
val (Vertical Character Alignment Position)
Specifies the style of vertical alignment which shall be used to align the characters on each line in the current paragraph.
[Example: Consider a paragraph of text of different font sizes which must 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. end example]
The possible values for this attribute are defined by the ST_TextAlignment simple type (§17.18.91).
[Note: The W3C XML Schema definition of this element’s content model (CT_TextAlignment) is located in §A.1. end note]
© ISO/IEC29500: 2008.