Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PositionOffset class

Defines the PositionOffset Class. When the object is serialized out as xml, its qualified name is wp:posOffset.

Namespace:  DocumentFormat.OpenXml.Drawing.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class PositionOffset : OpenXmlLeafTextElement

[ISO/IEC 29500-1 1st Edition]

posOffset (Absolute Position Offset)

This element specifies an absolute measurement for the positioning of a floating DrawingML object within a WordprocessingML document. This measurement shall be calculated relative to the top left edge of the positioning base specified by the parent element's relativeFrom attribute.

[Example: Consider a DrawingML picture which must be displayed one inch from the top of the page, and one-half of an inch from the left edge of the page. This object would be specified as follows:

<wp:anchor … >
  <wp:positionH relativeFrom="page">
    <wp:posOffset>914400</wp:posOffset>
  </wp:positionH>
  <wp:positionV relativeFrom="page">
    <wp:posOffset>457200</wp:posOffset>
  </wp:positionV>
</wp:anchor>

The posOffset element specifies the absolute positioning of the object relative to the top-left edge of the page in EMUs. end example]

The possible values for this element are defined by the ST_PositionOffset simple type (§20.4.3.3).

Parent Elements

positionH (§20.4.2.10); positionV (§20.4.2.11)

[Note: The W3C XML Schema definition of this element’s content model (ST_PositionOffset) is located in §A.4.4. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft