InfoConnect for Unisys
Attachmate.Reflection.Emulation.IbmHosts Namespace / IContextMenus Interface / ItemByIndex Method
The position within the collection to return a menu for.


In This Topic
    ItemByIndex Method (IContextMenus)
    In This Topic
    Returns the context menu at the specified index in the session document's context menu collection
    Syntax
    'Declaration
     
    
    Function ItemByIndex( _
       ByVal index As Integer _
    ) As IContextMenu
    'Usage
     
    
    Dim instance As IContextMenus
    Dim index As Integer
    Dim value As IContextMenu
     
    value = instance.ItemByIndex(index)
    IContextMenu ItemByIndex( 
       int 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