Gets the specified item from the collection. | |
Syntax: | Set GefContextMenuItem = object.Item ( Index ) |
Parameters: | |
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 |