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


In This Topic
    ItemByIndex Method (ContextMenus)
    In This Topic
    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)
    public 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