Compartilhar via


PositionOffset Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.OpenXmlLeafTextElement
        DocumentFormat.OpenXml.Drawing.Wordprocessing.PositionOffset

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

Syntax

'Declaration
Public Class PositionOffset _
    Inherits OpenXmlLeafTextElement
'Usage
Dim instance As PositionOffset
public class PositionOffset : OpenXmlLeafTextElement

Remarks

[ISO/IEC 29500-1 1st Edition]

20.4.2.12 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.

Thread Safety

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

See Also

Reference

PositionOffset Members

DocumentFormat.OpenXml.Drawing.Wordprocessing Namespace