Shapes.AddPolyline(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.