Back to Devexpress

MapControl.ObjectSelected Event

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-ff7fb140.md

latest1.8 KB
Original Source

MapControl.ObjectSelected Event

Occurs before any map element is selected at runtime.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public event ObjectSelectedEventHandler ObjectSelected
vb
Public Event ObjectSelected As ObjectSelectedEventHandler

Event Data

The ObjectSelected event's data class is ObjectSelectedEventArgs. The following properties provide information specific to this event:

PropertyDescription
ObjectReturns the data object whose map representation was selected.

Remarks

An end-user is able to select some items of the MapControl at runtime if the MapControl.SelectionMode property is not set to None. Handle the ObjectSelected event if you want to perform specific actions when an end-user selects a map element, or if you want to disable the selection of particular elements. Note that the currently selected element of the map can be accessed using the ObjectSelectedEventArgs.Object property.

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace