ImageGear .NET v25.1 - Updated
setContextMenuForTool Method

ImageGear.Web.UI Library > ImageGear.Web.UI Namespace > PageView class : setContextMenuForTool Method
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

Reference

PageView class
PageView Members