Partager via


CanvasShapes.AddPolyline Method

Adds an open or closed polygon to a drawing canvas.

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

Syntax

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

returnValue = instance.AddPolyline(SafeArrayOfPoints)
Shape AddPolyline(
    ref 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.Word.Shape

Remarks

A coordinate pair is a pair of values representing the x- and y-coordinates of a point that are stored in a two-dimensional array that can contain coordinates for many points.

See Also

Reference

CanvasShapes Interface

CanvasShapes Members

Microsoft.Office.Interop.Word Namespace