Points Object Properties

Count

Contains the number of points in this object. This property is read-only.

Example:

var pts = LayoutHost.CreatePointsObject();

var numPts = pts.Count; // returns 0 in this case

X(index)

Contains the X coordinate for a given index (zero based).

Example:

var pts = LayoutHost.CreatePointsObject();

x = 10;

pts.Add(x, y);

x2 = pts.X(0) * 2;

pts.X(0) = x2;

Y(index)

Contains the Y coordinate for a given index (zero based).

Example:

var pts = LayoutHost.CreatePointsObject();

y = 10;

pts.Add(x, y);

y2 = pts.Y(0) * 2;

pts.Y(0) = y2;