Click or drag to resize

MapMouseEventsHandler Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Convenience class that collects various mouse events into one place.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBaseMapMouseEventsHandler

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class MapMouseEventsHandler

The MapMouseEventsHandler type exposes the following members.

Constructors
  NameDescription
Public methodMapMouseEventsHandler
Initializes a new instance of the MapMouseEventsHandler class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFireClick
Safely fire the mouse click event, even if no handler is attached. See remarks.
Public methodFireDoubleClick
Safely fire the mouse double click event, even if no handler is attached.
Public methodFireMouseDown
Safely fire the mouse button down event, even if no handler is attached. See FireClick(Object, EventArgs) remarks.
Public methodFireMouseMove
Safely fire the mouse move event, even if no handler is attached. See FireClick(Object, EventArgs) remarks.
Public methodFireMouseUp
Safely fire the mouse button up event, even if no handler is attached. See FireClick(Object, EventArgs) remarks.
Public methodFireOnMouseEnter
Safely fire the mouse enter event, even if no handler is attached. See FireClick(Object, EventArgs) remarks.
Public methodFireOnMouseLeave
Safely fire the mouse exit event, even if no handler is attached. See FireClick(Object, EventArgs) remarks.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventClick
Event to be fired on a mouse click.
Public eventDoubleClick
Event to be fired on a mouse double click.
Public eventMouseDown
Event to be fired when the mouse button is pressed down.
Public eventMouseMove
Can be fired when the mouse is moved.
Public eventMouseUp
Event to be fired when the mouse button is released.
Public eventOnMouseEnter
Fired when the mouse moves over the item.
Public eventOnMouseLeave
Fired when the mouse moves off the item.
Top
Remarks

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.

Examples
Below is an example of how to use a MapMouseEventsHandler in a fictional class.
C#
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);

}
See Also