MoveTo class
Move Path To. When the object is serialized out as xml, its qualified name is a:moveTo.
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Drawing.MoveTo
Namespace: DocumentFormat.OpenXml.Drawing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
moveTo (Move Path To)
This element specifies a set of new coordinates to move the shape cursor to. This element is only used for drawing a custom geometry. When this element is utilized the pt element is used to specify a new set of shape coordinates that the shape cursor should be moved to. This does not draw a line or curve to this new position from the old position but simply move the cursor to a new starting position. It is only when a path drawing element such as lnTo is used that a portion of the path is drawn.
[Example: Consider the case where a user wishes to begin drawing a custom geometry not at the default starting coordinates of x=0 , y=0 but at coordinates further inset into the shape coordinate space. The following DrawingML would specify such a case.
<a:custGeom>
<a:pathLst>
<a:path w="2824222" h="590309">
<a:moveTo>
<a:pt x="0" y="428263"/>
</a:moveTo>
<a:lnTo>
<a:pt x="1620455" y="590309"/>
</a:lnTo>
<a:lnTo>
<a:pt x="2824222" y="173620"/>
</a:lnTo>
<a:lnTo>
<a:pt x="1562582" y="0"/>
</a:lnTo>
<a:close/>
</a:path>
</a:pathLst>
</a:custGeom>Notice the moveTo element advances the y coordinates before any actual lines are drawn. end example]
Parent Elements |
|---|
path (§20.1.9.15) |
Child Elements | Subclause |
|---|---|
pt (Shape Path Point) | §20.1.9.20 |
[Note: The W3C XML Schema definition of this element’s content model (CT_Path2DMoveTo) is located in §A.4.1. end note]
© ISO/IEC29500: 2008.