편집

다음을 통해 공유


Shapes.AddPolyline(Object, Object) Method

Definition

Adds an open or closed polygon to a document. Returns a Shape object that represents the polygon and adds it to the Shapes collection.

public Microsoft.Office.Interop.Word.Shape AddPolyline (ref object SafeArrayOfPoints, ref object Anchor);
abstract member AddPolyline : obj * obj -> Microsoft.Office.Interop.Word.Shape
Public Function AddPolyline (ByRef SafeArrayOfPoints As Object, Optional ByRef Anchor As Object) As Shape

Parameters

SafeArrayOfPoints
Object

Required Object. An array of coordinate pairs that specifies the polyline drawing's vertices.

Anchor
Object

Optional Object. A Range object that represents the text to which the polyline is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the line is positioned relative to the top and left edges of the page.

Returns

Remarks

To form a closed polygon, assign the same coordinates to the first and last vertices in the polyline drawing.

Applies to