Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

public event MapSelectionChangingEventHandler SelectionChanging

Event Data

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

Property Description
Cancel Gets or sets whether the selection of a map item should be canceled.
Selection Gets 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