Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / ContextMenus Object / 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
    expression.ItemByIndex( _
       ByVal index As Integer _
    ) As ContextMenu object 
    where expression is a variable that represents a ContextMenus Object

    Parameters

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

    Return Value

    A ContextMenu object that contains the context menu at the specified position
    Exceptions
    ExceptionDescription
    Thrown if the index argument is invalid.
    See Also