Description

Returns a graphic object from the collection based on its DrawingOrder property value.

Return Type

An Object object.  

The McGraphObj found as an object, or Nothing if no object with the given ID can be found.

Syntax

object.GetItemFromDrawingOrder (DrawingOrderToGet)

The GetItemFromDrawingOrder Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McGraphOverlay.
DrawingOrderToGetRequired. A Long value.

The object ID to find.

Remarks

Only normal, non-template, non-label objects (ones with Category mcgewMaster) are found by this method.

Use the Item property to find objects based on their position or ID property. To find other objects in other Categories or based on other properties, use the SetEnumFilter method and then search for the object in a “For Each” loop.