Skip to content

MapMouseDownMapViewEventArgs

Namespace: ThinkGeo.UI.WinForms

Provides data for MapViewBase.MapMouseDown, exposing screen/world coordinates and the pressed mouse button.

public class MapMouseDownMapViewEventArgs : System.EventArgs

Inheritance object → EventArgs → MapMouseDownMapViewEventArgs

Remarks:

MapView-level notification fired once per physical mouse-down event, synchronously, before any InteractiveOverlay dispatch. Distinct from InteractiveOverlay.MapMouseDown, which fires only if dispatch reaches that overlay.

Properties

ScreenX

Gets the X screen coordinate of the pointer.

public float ScreenX { get; }

Property Value

float

ScreenY

Gets the Y screen coordinate of the pointer.

public float ScreenY { get; }

Property Value

float

MouseButton

Gets the mouse button that was pressed.

public MapMouseButton MouseButton { get; }

Property Value

MapMouseButton

WorldLocation

Gets the pointer world position as a PointShape.

public PointShape WorldLocation { get; }

Property Value

PointShape

Constructors

MapMouseDownMapViewEventArgs()

Initializes a new instance of the MapMouseDownMapViewEventArgs class with undefined coordinates.

public MapMouseDownMapViewEventArgs()

MapMouseDownMapViewEventArgs(float, float, double, double, MapMouseButton)

Initializes a new instance of the MapMouseDownMapViewEventArgs class with explicit coordinates and button data.

public MapMouseDownMapViewEventArgs(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 button that was pressed.