Edit

Share via


Shapes.AddPolyline(Object) Method

Definition

Creates an open polyline or a closed polygon drawing. Returns a Shape object that represents the new polyline or polygon.

public:
 Microsoft::Office::Interop::Excel::Shape ^ AddPolyline(System::Object ^ SafeArrayOfPoints);
public Microsoft.Office.Interop.Excel.Shape AddPolyline (object SafeArrayOfPoints);
Public Function AddPolyline (SafeArrayOfPoints As Object) As Shape

Parameters

SafeArrayOfPoints
Object

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

Returns

Remarks

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

Applies to