MapMouseMoveMapViewEventArgs¶
Namespace: ThinkGeo.UI.WinForms
Provides data for MapViewBase.MapMouseMove, exposing both screen and world coordinates plus the current mouse button state.
public class MapMouseMoveMapViewEventArgs : System.EventArgs
Inheritance object → EventArgs → MapMouseMoveMapViewEventArgs
Remarks:
This is the MapView-level notification event that fires once per physical mouse move, before any InteractiveOverlay dispatch. It is distinct from InteractiveOverlay.MapMouseMove, which fires only when the overlay dispatch reaches that particular overlay.
Properties¶
ScreenX¶
Gets the X screen coordinate of the pointer.
public float ScreenX { get; }
Property Value¶
ScreenY¶
Gets the Y screen coordinate of the pointer.
public float ScreenY { get; }
Property Value¶
MouseButton¶
Gets the mouse button currently held during the move, or MapMouseButton.None.
public MapMouseButton MouseButton { get; }
Property Value¶
WorldLocation¶
Gets the pointer world position as a PointShape.
public PointShape WorldLocation { get; }
Property Value¶
PointShape
Constructors¶
MapMouseMoveMapViewEventArgs()¶
Initializes a new instance of the MapMouseMoveMapViewEventArgs class with undefined coordinates.
public MapMouseMoveMapViewEventArgs()
MapMouseMoveMapViewEventArgs(float, float, double, double, MapMouseButton)¶
Initializes a new instance of the MapMouseMoveMapViewEventArgs class with explicit coordinates and button data.
public MapMouseMoveMapViewEventArgs(float screenX, float screenY, double worldX, double worldY, MapMouseButton mouseButton)
Parameters¶
screenX float
The X coordinate of the pointer in screen pixels.
screenY float
The Y coordinate of the pointer in screen pixels.
worldX double
The X coordinate of the pointer in world units.
worldY double
The Y coordinate of the pointer in world units.
mouseButton MapMouseButton
The mouse button currently held during the move, or .