Share via


Shapes.AddPolyline Method

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

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Function AddPolyline ( _
    SafeArrayOfPoints As Object _
) As Shape
'Usage
Dim instance As Shapes
Dim SafeArrayOfPoints As Object
Dim returnValue As Shape

returnValue = instance.AddPolyline(SafeArrayOfPoints)
Shape AddPolyline(
    Object SafeArrayOfPoints
)

Parameters

  • SafeArrayOfPoints
    Type: System.Object
    An array of coordinate pairs that specifies the polyline drawing's vertices.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.Shape

Remarks

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

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.PowerPoint Namespace