Gets the specified item from the collection. | |
Syntax: | Set GefObject = object.Item ( IndexOrName ) |
Parameters: |
Optional IndexOrName As VARIANT -
|
Description: | The Item method is the default method for
collections. The GefObjects collection support access by index number or name. The objects are sorted by z-order (0 on the bottom, Count-1 on the top). Example: Sub GefObjects_Item() Dim oCimScr As GefScreen Dim oCimObj As GefObject Dim oCimObjs As GefObjects Dim oCimFirstObj As
GefObject Set oCimScr = CimGetScreen Set oCimObj =
oCimScr.Object Set oCimObjs =
oCimObj.Objects Set oCimFirstObj =
oCimObj.Objects.Item(0) MsgBox "The first object on the
screen is " & _ oCimFirstObj.Name End Sub |