Polygon Method

Path Control

Specifies a set of closed line segments to use as a path. The first point defines the path's starting point. This method can be used or modified only when the path is stopped.

Syntax

HTML<PARAM NAME="Shape" VALUE="Polygon
( npoints, [ x1, y1, ..., xN, yN ] ) ">
ScriptingPolygonArray=Array( x1, y1, ..., xN, yN )
pathObj.Polygon( npoints, PolygonArray )

Parameters

nPoints
Number of points in the polygon.
x1, y1,..., xN, yN
Set of x- and y-coordinates that identify the polygon points.
PolygonArray
Array that contains the x- and y-coordinate definitions (script only).

Remarks

The array of x- and y-coordinates can be specified either as an array, or as a comma-delimited string of numbers that will be passed into the coordinates.

Example

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


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