Rocket® InfoConnect Desktop (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
The name of the menu item, as it is displayed within the menu. This applies only to
items of type ContextMenuItemType.MenuItem
GetContextMenuItem Method (IContextMenu)
In This Topic
Returns a context menu item with the specified name.
Syntax
'Declaration
Function GetContextMenuItem( _ ByVal name As String _ ) As ContextMenuItem
'Usage
Dim instance As IContextMenu Dim name As String Dim value As ContextMenuItem value = instance.GetContextMenuItem(name)
ContextMenuItem GetContextMenuItem( string name )
Parameters
- name
- The name of the menu item, as it is displayed within the menu. This applies only to items of type ContextMenuItemType.MenuItem
Return Value
A ContextMenuItem with the specified name, or null if no such item exists.
Remarks
This method cannot be used to return separator menu items, as they cannot be uniquely
identified.
See Also