Shapes.AddPolyline(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.
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.