[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

ST_YAlign (Vertical Alignment Location)

This simple type specifies the set of possible relative vertical positions for the parent floating object. This relative position is specified relative to the vertical anchor specified by the parent object.

[Example: Consider the following WordprocessingML fragment specifying a text frame:

<w:p>

<w:pPr>

<w:framePr w:w="2419" w:h="2189" w:hRule="atLeast" w:hSpace="187" w:wrap="around" w:vAnchor="margin" w:hAnchor="page" w:x="1643" w:y="73" w:yAlign="center" />

</w:pPr>

<w:r>

<w:t>Text Frame Content.</w:t>

</w:r>

</w:p>

This text frame specifies by the presence of the yAlign attribute to vertically align the frame in the center of the anchor object, in this case, the margin. 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

bottom (Bottom)

Specifies that the parent object shall be vertically aligned to the bottom edge of the anchor object .

 

[Example: At the bottom of the current paragraph. end example]

center (Centered Vertically)

Specifies that the parent object shall be vertically centered with respect to the anchor object.

 

[Example: Centered on the page vertically. end example]

inline (In line With Text)

Specifies that the parent object shall be vertically aligned in line with the surrounding text (i.e. shall not allow any text wrapping around it when positioned in the document.

inside (Inside Anchor Extents)

Specifies that the parent object shall be vertically aligned to the edge of the anchor object, and positioned inside that object.

 

[Example: Inside the text margins vertically. end example]

outside (Outside Anchor Extents)

Specifies that the parent object shall be vertically aligned to the edge of the anchor object, and positioned outside that object.

 

[Example: Outside the text margins vertically. end example]

top (Top)

Specifies that the parent object shall be vertically aligned to the top edge of the anchor object .

 

[Example: At the top of the current paragraph. end example]

 

Referenced By

framePr@yAlign2.3.1.11); tblpPr@tblpYSpec2.4.54)

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

<simpleType name="ST_YAlign">

   <restriction base="xsd:string">

   <enumeration value="inline"/>

   <enumeration value="top"/>

   <enumeration value="center"/>

   <enumeration value="bottom"/>

   <enumeration value="inside"/>

   <enumeration value="outside"/>

   </restriction>

</simpleType>