GefContextMenuItems.Item (read-only property)

Gets the specified item from the collection.
Syntax: Set GefContextMenuItem = object.Item ( Index )
Parameters:
Index As long - The numeric index. The numeric index ranges from 0 to Count-1.
Description: The Item method is the default method for collections.



Example:

Sub OnPreContextMenu(oContextMenu As GefContextMenu)
  Dim oMenuItems As GefContextMenuItems
  
  Set oMenuItems = oContextMenu.MenuItems
  If oMenuItems.Count > 0 Then
    If oMenuItems.Item(0).Type = gefMenuItemTypeSeparator Then
      oMenuItems.Remove 0
    End If
  End If
End Sub