Back to Devexpress

MapControl.SelectionChanging Event

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

latest1.7 KB
Original Source

MapControl.SelectionChanging Event

Occurs before a map item is selected, enabling a handler to cancel the map item selection change.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public event MapSelectionChangingEventHandler SelectionChanging
vb
Public Event SelectionChanging As MapSelectionChangingEventHandler

Event Data

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

PropertyDescription
CancelGets or sets whether the selection of a map item should be canceled.
SelectionGets the list of selected objects on a map. Inherited from MapSelectionEventArgs.

Remarks

This event fires before a selection is changed. It can be handled to customize the map item selection. The event’s Cancel parameter allows you to prevent the map item from being selected.

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace