Creates an open polyline or a closed polygon drawing. Returns a Shape object that represents the new polyline or polygon.
Syntax
expression.AddPolyline(SafeArrayOfPoints)
expression Required. An expression that returns a Shapes object.
SafeArrayOfPoints Required Single. 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.