Description

An item from the collection.

Property type

A McGraphOverlay object.  

Syntax

object.Item(varItem)

The Item Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDisplayOverlays.
varItemRequired. A Variant value.

Either a name string, an McGraphOverlay object instance or an index number.

If a name string, then the collection is searched for an McGraphOverlay with an identical Name property (the comparison is case insensitive); should no such name be found, a NULL object is returned.

If an McGraphOverlay object instance, then the collection is searched for that McGraphOverlay instance; should no such instance be found, a NULL object is returned. This allows you to check to see if some McGraphOverlay object instance is already part of the collection.

If an index number, then that McGraphOverlay instance is returned. The index number must be from zero to Count-1.

Remarks

A McGraphOverlay instance from the collection is exposed by name or index number.

Item is the default property for the McDisplayOverlays collection interface.

Exceptions

An index out of range is an error, but you may pass in a name or McGraphOverlay* that is not part of the collection without error. In this case, a NULL is returned.