CanvasShapes.AddPolyline Method
Word Developer Reference |
Adds an open or closed polygon to a drawing canvas. Returns a Shape object that represents the polygon.
Syntax
expression.AddPolyline(SafeArrayOfPoints)
expression Required. A variable that represents a CanvasShapes collection.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
SafeArrayOfPoints | Required | Variant | An array of coordinate pairs that specifies the polyline drawing's vertices. |
Remarks
To form a closed polygon, assign the same coordinates to the first and last vertices in the polyline drawing.
Example
This example creates a V-shaped open polyline in a new drawing canvas.
Visual Basic for Applications |
---|
|
See Also