Поделиться через


MoveTo Class

Move Path To.When the object is serialized out as xml, its qualified name is a:moveTo.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.MoveTo

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

Syntax

'Декларация
<ChildElementInfoAttribute(GetType(Point))> _
Public Class MoveTo _
    Inherits OpenXmlCompositeElement
'Применение
Dim instance As MoveTo
[ChildElementInfoAttribute(typeof(Point))]
public class MoveTo : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • Point <a:pt>

[ISO/IEC 29500-1 редакция 1]

20.1.9.14 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. Приведенный выше текст переведен с английского языка на русский корпорацией Майкрософт (или ее подрядчиками) и ISO не несет ответственности за эти переводы.

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

MoveTo Members

DocumentFormat.OpenXml.Drawing Namespace