GefRange.Item (read-only property)

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 GefRange collection support access by index number or name. The objects in the are sorted by z-order (0 on the bottom, Count-1 on the top).

Example:

Sub Range_Item()
    
    Dim oCimScr As GefScreen
    Dim oCimObjGrp As GefObject
    Dim oCimRnge As GefRange
    Dim i As Integer
    
    Set oCimScr = CimGetScreen
    Set oCimObjGrp = oCimScr.object.Objects.Item("Group1")
    Set oCimRnge = oCimObjGrp.Ungroup
    
    For i = 0 To oCimRnge.Count - 1
        MsgBox "Item " & i + 1 & " is " & oCimRnge.Item(i).Name
    Next i
    
End Sub