ImageGear .NET v25.2 - Updated
ImageGear.Web.UI Library / ImageGear.Web.UI Namespace / PageView class / setContextMenuForTool Method

In This Topic
    setContextMenuForTool Method
    In This Topic
    Sets the context menu for the provided mouse tool and mark type.
    Syntax
    ASP.NET Ajax JavaScript (Specification) 
    function setContextMenuForTool( 
       menu : ContextMenu,
       markType : MarkType,
       mouseTool : MouseTool
    ) : undefined;
    ASP.NET Ajax JavaScript (Usage) 
    var resultVar = instanceOfPageView.setContextMenuForTool(ContextMenu,MarkType,MouseTool);

    Parameters

    menu
    ContextMenu object to set as a context menu.
    markType
    Specifies the mouse tool to set the context menu for.
    mouseTool
    Specifies the mouse tool to set the context menu for. This is optional parameter. In case of missing parameter the method sets the provided menu for all mouse tools.

    Return Value

    Method does not return any values.
    Remarks
    This method sets the context menu for the given mouse tool and the mark type, or the image context menu if null value is provided as a mark type. Please see Context Menu Customization page for more details.
    See Also