[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

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: Consider a paragraph of text of different font sizes, as follows:

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. end example]

Parent Elements

pPr2.7.4.2); pPr2.9.24); pPr2.3.1.25); pPr2.7.5.1); pPr2.3.1.26); pPr2.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.

 

[Example: 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. end example]

 

The possible values for this attribute are defined by the ST_TextAlignment simple type2.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>