Attachmate Reflection 2014 .NET API Reference
ContextMenuItem Constructor(String,ContextMenuItemType,InputMapActionSequence)


The name of the item. This is the text that will appear within the context menu for the item. For separator menu items, this value is ignored.
What type of menu item this is
The action mapping for this item, if a menu item, otherwise ignored.
Initializes a new instance of the ContextMenuItem class.
Syntax
'Declaration
 
Public Function New( _
   ByVal name As String, _
   ByVal type As ContextMenuItemType, _
   ByVal mapping As InputMapActionSequence _
)
'Usage
 
Dim name As String
Dim type As ContextMenuItemType
Dim mapping As InputMapActionSequence
 
Dim instance As New ContextMenuItem(name, type, mapping)
public ContextMenuItem( 
   string name,
   ContextMenuItemType type,
   InputMapActionSequence mapping
)

Parameters

name
The name of the item. This is the text that will appear within the context menu for the item. For separator menu items, this value is ignored.
type
What type of menu item this is
mapping
The action mapping for this item, if a menu item, otherwise ignored.
Exceptions
ExceptionDescription
System.ArgumentExceptionThrown if namecontains any illegal characters.
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

ContextMenuItem Class
ContextMenuItem Members
Overload List

Send Feedback