Skip to content

MapMouseEnterMapViewEventArgs

Namespace: ThinkGeo.UI.WinForms

Provides data for MapViewBase.MapMouseEnter, exposing the pointer position when it entered the map.

public class MapMouseEnterMapViewEventArgs : System.EventArgs

Inheritance object → EventArgs → MapMouseEnterMapViewEventArgs

Remarks:

MapView-level notification fired once when the pointer enters the map area, synchronously, before any InteractiveOverlay dispatch. Distinct from InteractiveOverlay.MapMouseEnter, which fires only if dispatch reaches that overlay.

Properties

ScreenX

Gets the X screen coordinate of the pointer on entry.

public float ScreenX { get; }

Property Value

float

ScreenY

Gets the Y screen coordinate of the pointer on entry.

public float ScreenY { get; }

Property Value

float

MouseButton

Gets the mouse button currently held on entry.

public MapMouseButton MouseButton { get; }

Property Value

MapMouseButton

WorldLocation

Gets the entry world position as a PointShape.

public PointShape WorldLocation { get; }

Property Value

PointShape

Constructors

MapMouseEnterMapViewEventArgs()

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

public MapMouseEnterMapViewEventArgs()

MapMouseEnterMapViewEventArgs(float, float, double, double, MapMouseButton)

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

public MapMouseEnterMapViewEventArgs(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 on entry, or .