Reflection .NET API
Attachmate.Reflection.Emulation.OpenSystems Assembly / Attachmate.Reflection.Emulation.OpenSystems Namespace / ContextMenus Class / ItemByIndex Method
The position within the collection to return a menu for.


ItemByIndex Method (ContextMenus)
Returns the context menu at the specified index in the session document's context menu collection
Syntax
'Declaration
 
Public Function ItemByIndex( _
   ByVal index As Integer _
) As IContextMenu
 
'Usage
 
Dim instance As ContextMenus
Dim index As Integer
Dim value As IContextMenu
 
value = instance.ItemByIndex(index)

Parameters

index
The position within the collection to return a menu for.

Return Value

The context menu at the specified position
Exceptions
ExceptionDescription
Thrown if the index argument is invalid.
See Also