MapMouseEventsHandler Class | ![]() |
Namespace: Telogis.GeoBase
The MapMouseEventsHandler type exposes the following members.
Name | Description | |
---|---|---|
![]() | MapMouseEventsHandler | Initializes a new instance of the MapMouseEventsHandler class |
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | FireClick |
Safely fire the mouse click event, even if no handler is attached. See remarks.
|
![]() | FireDoubleClick |
Safely fire the mouse double click event, even if no handler is attached.
|
![]() | FireMouseDown |
Safely fire the mouse button down event, even if no handler is attached.
See FireClick(Object, EventArgs) remarks.
|
![]() | FireMouseMove |
Safely fire the mouse move event, even if no handler is attached.
See FireClick(Object, EventArgs) remarks.
|
![]() | FireMouseUp |
Safely fire the mouse button up event, even if no handler is attached.
See FireClick(Object, EventArgs) remarks.
|
![]() | FireOnMouseEnter |
Safely fire the mouse enter event, even if no handler is attached.
See FireClick(Object, EventArgs) remarks.
|
![]() | FireOnMouseLeave |
Safely fire the mouse exit event, even if no handler is attached.
See FireClick(Object, EventArgs) remarks.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | Click |
Event to be fired on a mouse click.
|
![]() | DoubleClick |
Event to be fired on a mouse double click.
|
![]() | MouseDown |
Event to be fired when the mouse button is pressed down.
|
![]() | MouseMove |
Can be fired when the mouse is moved.
|
![]() | MouseUp |
Event to be fired when the mouse button is released.
|
![]() | OnMouseEnter |
Fired when the mouse moves over the item.
|
![]() | OnMouseLeave |
Fired when the mouse moves off the item.
|
This class includes a number of public methods such as FireClick(Object, EventArgs) which are always safe to call even when the appropriate event handler has not been assigned - they will not cause exceptions.
Related articles: Mouse Events.
public class MyClass { MapMouseEventsHandler m_Handler = new MapMouseEventsHandler(); //Define a method to perform some action when the mouse is clicked. private void onClick(Object sender, EventArgs e) { //do some stuff... } //Add the onClick method to the events performed by this MapMouseEventsHandler. m_handler.Click += new EventHandler(onClick); }