ESRI.ArcGIS.ADF.Local
OnContextMenu Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.BaseClasses Namespace > BaseTool Class : OnContextMenu Method




X
The X coordinate, in device units, of the location of the mouse event. See the OnContextMenu Event for more details.
Y
The Y coordinate, in device units, of the location of the mouse event. See the OnContextMenu Event for more details.
This method is called when the context menu event is raised at the given location.

Syntax

Visual Basic (Declaration) 
Public Overridable Function OnContextMenu( _
   ByVal X As Integer, _
   ByVal Y As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As BaseTool
Dim X As Integer
Dim Y As Integer
Dim value As Boolean
 
value = instance.OnContextMenu(X, Y)
C# 
public virtual bool OnContextMenu( 
   int X,
   int Y
)

Parameters

X
The X coordinate, in device units, of the location of the mouse event. See the OnContextMenu Event for more details.
Y
The Y coordinate, in device units, of the location of the mouse event. See the OnContextMenu Event for more details.

Return Value

A boolean value indicating if the context menu event has been handled.

Remarks

Note to inheritors: Override the OnContextMenu method if you need to perform some action when the OnContextMenu event is raised when the tool is active. By default, False is returned, indicating that the event has not been handled in the tool, and so the default context menu for the view will be displayed instead.

See Also

© 2010 All Rights Reserved.