Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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