MapClickMapViewEventArgs¶
Namespace: ThinkGeo.Core
This class provides the data for the click event of the map control.
public class MapClickMapViewEventArgs : System.EventArgs
Inheritance Object → EventArgs → MapClickMapViewEventArgs
Remarks:
This class passes the location in world coordinates of where a user clicked on the map. You can then use event handlers to programmatically respond to the event based on the value of the location.
Properties¶
ScreenX¶
Gets and sets clicked screen x.
public float ScreenX { get; set; }
Property Value¶
ScreenY¶
Gets and sets clicked screen y.
public float ScreenY { get; set; }
Property Value¶
WorldX¶
Gets and sets clicked world x.
public double WorldX { get; set; }
Property Value¶
WorldY¶
Gets and sets clicked world y.
public double WorldY { get; set; }
Property Value¶
MouseButton¶
Gets and sets which button is clicked.
public MapMouseButton MouseButton { get; }
Property Value¶
WorldLocation¶
Gets the clicked world position.
public PointShape WorldLocation { get; }
Property Value¶
PointShape
Constructors¶
MapClickMapViewEventArgs()¶
Constructor of MapClickWpfMapEventArgs class.
public MapClickMapViewEventArgs()
MapClickMapViewEventArgs(Single, Single, Double, Double, MapMouseButton)¶
Constructor of MapClickWpfMapEventArgs class.
public MapClickMapViewEventArgs(float screenX, float screenY, double worldX, double worldY, MapMouseButton mouseButton)
Parameters¶
screenX
Single
Clicked screen x.
screenY
Single
Clicked screen y.
worldX
Double
Clicked world x.
worldY
Double
Clicked world y.
mouseButton
MapMouseButton
Clicked mouse button.