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)

Usage

Dim SafeArrayOfPoints As Object
Dim returnValue As Shape
Dim canvasShapes1 As CanvasShapes
returnValue = canvasShapes1.AddPolyline(SafeArrayOfPoints)

Syntax

Function AddPolyline( _
    <InAttribute()> ByRef SafeArrayOfPoints As Object _
) As Shape
Shape AddPolyline(
    [In] ref object SafeArrayOfPoints
);
public: Shape^ AddPolyline(
    &Object^ SafeArrayOfPoints
);
public Shape AddPolyline(
    /*in*/System.Object SafeArrayOfPoints
);
function AddPolyline(
     SafeArrayOfPoints : Object
) : Shape;

Parameters

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

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

CanvasShapes Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

CanvasShapes Members