MapClickMapViewEventArgs¶
Namespace: ThinkGeo.UI.Wpf
Provides data for map click events, exposing both screen and world coordinates.
public class MapClickMapViewEventArgs : System.EventArgs
Inheritance Object → EventArgs → MapClickMapViewEventArgs
Properties¶
ScreenX¶
Gets the X screen coordinate of the click.
public float ScreenX { get; set; }
Property Value¶
ScreenY¶
Gets the Y screen coordinate of the click.
public float ScreenY { get; set; }
Property Value¶
WorldX¶
Gets the X world coordinate of the click.
public double WorldX { get; set; }
Property Value¶
WorldY¶
Gets the Y world coordinate of the click.
public double WorldY { get; set; }
Property Value¶
MouseButton¶
Gets the mouse button associated with the click.
public MapMouseButton MouseButton { get; }
Property Value¶
WorldLocation¶
Gets the clicked world position.
public PointShape WorldLocation { get; }
Property Value¶
PointShape
Constructors¶
MapClickMapViewEventArgs()¶
Initializes a new instance of the MapClickMapViewEventArgs class with undefined coordinates.
public MapClickMapViewEventArgs()
MapClickMapViewEventArgs(Single, Single, Double, Double, MapMouseButton)¶
Initializes a new instance of the MapClickMapViewEventArgs class with explicit coordinates and button data.
public MapClickMapViewEventArgs(float screenX, float screenY, double worldX, double worldY, MapMouseButton mouseButton)
Parameters¶
screenX Single
The X coordinate of the click in screen pixels.
screenY Single
The Y coordinate of the click in screen pixels.
worldX Double
The X coordinate of the click in world units.
worldY Double
The Y coordinate of the click in world units.
mouseButton MapMouseButton
The mouse button associated with the click.