[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

ST_HAnchor (Horizontal Anchor Location)

This simple type specifies the horizontal position to which the parent object has been anchored in the document. This anchor position shall be used as the base location to determine the final horizontal position of the object in the document.

[Example: Consider a text frame which should be positioned one inch to the right of its column in a left-to-right document. This text frame would be specified using the following WordprocessingML:

<w:pPr>

<w:framePr … w:x="1440" w:hAnchor="margin" />

</w:pPr>

These frame horizontal anchor properties specify that they are relative to the anchor paragraph's margin (the text margin excluding any indents). 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

margin (Relative To Margin)

Specifies that the parent object shall be horizontally anchored to the text margins.

 

This shall be used to specify that any horizontal positioning values shall be calculated with respect to the location of the text margin.

page (Relative to Page)

Specifies that the parent object shall be horizontally anchored to the page edge.

 

This shall be used to specify that any horizontal positioning values shall be calculated with respect to the location of the edge of the page.

text (Relative to Text Extents)

Specifies that the parent object shall be horizontally anchored to the text extents.

 

This shall be used to specify that any horizontal positioning values shall be calculated with respect to the location of the edge of the text in the anchor paragraph (including text indentations on that paragraph within the text margins).

 

Referenced By

framePr@hAnchor2.3.1.11); tblpPr@horzAnchor2.4.54)

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

<simpleType name="ST_HAnchor">

   <restriction base="xsd:string">

   <enumeration value="text"/>

   <enumeration value="margin"/>

   <enumeration value="page"/>

   </restriction>

</simpleType>