SimplePosition Class

Simple Positioning Coordinates.When the object is serialized out as xml, its qualified name is wp:simplePos.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Drawing.Wordprocessing.Point2DType
        DocumentFormat.OpenXml.Drawing.Wordprocessing.SimplePosition

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

Syntax

'Declaration
Public Class SimplePosition _
    Inherits Point2DType
'Usage
Dim instance As SimplePosition
public class SimplePosition : Point2DType

Remarks

[ISO/IEC 29500-1 1st Edition]

20.4.2.13 simplePos (Simple Positioning Coordinates)

This element specifies the coordinates at which a DrawingML object shall be positioned relative to the top-left edge of its page, when the simplePos attribute is specified on the anchor element (§20.4.2.3).

[Example: Consider a floating DrawingML object which must be positioned at the top left corner of the page using simple positioning. This setting would be specified as follows:

<wp:anchor simplePos="true" … >
<wp:simplePos x="0" y="0" />
  …
</wp:anchor>

The simplePos attribute has a value of true, which specifies that the DrawingML object's current position must be dictated by the simplePos element, and hence placed at 0,0. end example]

Parent Elements

anchor (§20.4.2.3)

Attributes

Description

x (X-Axis Coordinate)

Namespace: .../drawingml/2006/main

Specifies a coordinate on the x-axis. The origin point for this coordinate shall be specified by the parent XML element.

[Example: Consider the following point on a basic wrapping polygon for a DrawingML object:

<… x="0" y="100" />

The x attribute defines an x-coordinate of 0. end example]

The possible values for this attribute are defined by the ST_Coordinate simple type (§20.1.10.16).

y (Y-Axis Coordinate)

Namespace: .../drawingml/2006/main

Specifies a coordinate on the x-axis. The origin point for this coordinate shall be specified by the parent XML element.

[Example: Consider the following point on a basic wrapping polygon for a DrawingML object:

<… x="0" y="100" />

The y attribute defines a y-coordinate of 100. end example]

The possible values for this attribute are defined by the ST_Coordinate simple type (§20.1.10.16).

[Note: The W3C XML Schema definition of this element’s content model (CT_Point2D) is located in §A.4.1. 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

SimplePosition Members

DocumentFormat.OpenXml.Drawing.Wordprocessing Namespace