[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

ST_VerticalJc (Vertical Alignment Type)

This simple type specifies the vertical alignment for text between the top and bottom margins of the parent container (page or table cell).

[Example: Consider a region where the text shall be vertically centered in the parent element. This would require a val value of center, in order to specify that all justification vertically shall be centered relative to the parent. For a section, this setting would be specified as follows:

<w:vAlign w:val="center" />

The val attribute of center specifies that the content is centered relative to its container . end example]

This simple type's contents are a restriction of the XML Schema string datatype.

The following are possible enumeration values for this type:

Enumeration Value

Description

both (Vertical Justification)

Specifies that the text shall be vertically justified between the top and bottom margins of the parent object, by adding additional line spacing to each paragraph as required.

 

This setting is only applied for the content of the section which is displayed on full pages. If the content does not use the full page (e.g. another section begins on the same page, or the document ends mid-page), then the value shall be ignored when rendering that page (returning to the default value of top)

 

This value is only valid for page justification settings, and shall be ignored when specified on a table cell (returning to the default value of top).

bottom (Align Bottom)

Specifies that the text shall be vertically aligned to the bottom margin of the parent object, by moving all text to the bottom text extent within the parent object as required.

center (Align Center)

Specifies that the text shall be vertically aligned to the center of the parent object..

top (Align Top)

Specifies that the text shall be vertically aligned to the top margin of the parent object, by moving all text to the top text extent within the parent object as required.

 

Referenced By

vAlign@val2.4.80); vAlign@val2.6.23)

The following XML Schema fragment defines the contents of this simple type:

<simpleType name="ST_VerticalJc">

   <restriction base="xsd:string">

   <enumeration value="top"/>

   <enumeration value="center"/>

   <enumeration value="both"/>

   <enumeration value="bottom"/>

   </restriction>

</simpleType>