<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 will be 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:

If the text on this paragraph shall 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. ]

Parent Elements

<pPr>2.7.4.2); <pPr>2.9.24); <pPr>2.3.1.25); <pPr>2.7.5.1); <pPr>2.3.1.26); <pPr>2.7.7.2)

Attributes

Description

<val> (Vertical Character Alignment Position)

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

<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 (§2.18.98).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_TextAlignment">
	<attribute name="val" type="ST_TextAlignment" use="required"/>
</complexType>