Description

Returns one or several points defining a graphic object.

Return Type

A Long value.  

The number of points needed in Points. If Point contains a safearray of long/float/double, then the return value will be equal to half the size of that safearray since there are two values per point.

Syntax

object.GetPoints (PointIndex, [Points])

The GetPoints Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McGraphObjPoly.
PointIndexRequired. A Long value.

The index of the point. If this is mcgwpAllPoints, then the coordinates of all points are returned. Otherwise this must be a point index value between 0 and Count minus 1.

PointsOptional. A Variant value.

If NULL or pointing to a VT_ERROR or VT_NULL variant (parameter omitted), then only the count is returned. if a VT_EMPTY variant, it will be shaped and filled with an array containing 2 float per point. Otherwise Points must point to a variant containing a safearray or record(s) of the proper type and size. Allowed types are LONGPOINT, or long, SINGLEPOINT, or float (AKA Single in VB), and DOUBLEPOINT, or double. A non-emtpy variant of the right size and type will be filled with x,y pixel coordinate values (one XXXPOINT per point or two long/float/double per point)

Remarks

The number of points and their layout is determined by the object class, see the description of the interfaces derived from McGraphObj for details.