Export (0) Print
Expand All

LineTo class

Wrapping Polygon Line End Position. When the object is serialized out as xml, its qualified name is wp:lineTo.

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

public class LineTo : Point2DType

[ISO/IEC 29500-1 1st Edition]

lineTo (Wrapping Polygon Line End Position)

This element specifies a single point on the wrapping polygon for a DrawingML object. This point shall be the termination of the edge of the wrapping polygon started by the previous start or lineTo element in document order, and shall be the origin of the next edge on the same polygon.

The attributes on this element shall dictate the position of the point relative to the upper-left corner of the actual object.

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

<wp:wrapPolygon>
  <wp:start x="0" y="0" />
  <wp:lineTo x="0" y="100" />
  <wp:lineTo x="100" y="100" />
  <wp:lineTo x="100" y="0" />
  <wp:lineTo x="0" y="0" />
</wp:wrapPolygon>

The lineTo element defines each point of the wrapping polygon (in this case, the four points of the wrapping square). end example]

Parent Elements

wrapPolygon (§20.4.2.16)

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.

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