CimAxes.Item (read-only property)

Gets the axis with a particular name or at a particular index in the collection.
Syntax: Set CimAxis = object.Item ( IndexOrName )
Parameters:
Optional IndexOrName As VARIANT - Specifies the index or name of the item you desire. It must be either a number from 0 to Count - 1 or an existing axis name.
Description: CimAxes.Item returns an axis. When a name is specified as the argument, the axis returned is the one whose name matches the name argument. When an index is specified as the argument, the axis returned is the one at the location specified by the index argument. When the argument is omitted, the first axis is returned.

Example

The following CimView script excerpt returns an X axis named X Axis:

Dim Axis as CimAxis
Set Axis = cimOleObj.X.Item("X Axis")

Since this is a default property, the previous script can also be written as follows:

Dim Axis as CimAxis
Set Axis = cimOleObj.X("X Axis")