Attachmate Reflection 2014 .NET API Reference
GetContextMenuItem Method (ContextMenu)


The name of the menu item, as it is displayed within the menu. This applies only to items of type ContextMenuItemType.MenuItem
Returns a context menu item with the specified name.
Syntax
'Declaration
 
Public Function GetContextMenuItem( _
   ByVal itemName As String _
) As ContextMenuItem
'Usage
 
Dim instance As ContextMenu
Dim itemName As String
Dim value As ContextMenuItem
 
value = instance.GetContextMenuItem(itemName)
public ContextMenuItem GetContextMenuItem( 
   string itemName
)

Parameters

itemName
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.
Requirements

Target Platforms: Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP, Microsoft Windows Server 2003 Terminal Services, Microsoft Windows Server 2008 Terminal Services

See Also

Reference

ContextMenu Class
ContextMenu Members

Send Feedback