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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.