PolyLine Method

Structured Graphics Control

Creates an open (nonfilled) line shape defined by a series of points.

Syntax

HTML<PARAM NAME="Line0001" VALUE="PolyLine( nPoints, x1, y1, x2, y2 [, x3, y3 ...], rotation )">
ScriptingSGObj.PolyLine( nPoints, x1, y1, x2, y2 [, x3, y3 ...], rotation )
FilePolyLine( nPoints, x1, y1, x2, y2 [, x3, y3 ...], rotation )

Parameters

nPoints
Total number of points.
x1, y1
First point defining the line.
x2, y2
Second point defining the line.
x3, y3
Additional points that define the line.
rotation
Degree of rotation from the 0 degrees position.

Remarks

To create a closed polygon, use the Polygon method.

Example

The following example creates a stair-stepped line.

<PARAM NAME="Line0001" VALUE="PolyLine(7, 10,10, 30,10, 30,30,
50,30, 50,50, 70,50, 70,70, 0)">

Right-click inside the frame and choose View Source to see the HTML code for the PolyLine method example.


Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.