Geom Object Properties

Layer

Get/Set the layer on which a geometry object is placed.

Example:

rect.Layer = LayoutHost.GetLayerID(‘top’);

Edge(index)

Return the edge object for the edge specified. Edge indexes are zero based and count in a counter-clockwise direction around the object. For rectangles, edge zero is the lower edge. Circles are defined by two arc edges, a lower edge (edge zero) and an upper edge (edge 1); the start/end points of these edges are directly to the left/right of center. Lines and Polygon edges are defined by the user when the object is created. A rotated box giving the text extent is used to define the edges for a text object; edge zero is the line beneath the text.

Example:

var len = poly.Edge(5).Length

Count

Returns the number of edges in the geometry object.

Example:

for (var i = 0; i < poly.Count; ++i)