windowsforms-devexpress-dot-xtramap-dot-mapcontrol-69427f9f.md
Gets or sets a value specifying how the map control is selected.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
[DefaultValue(ElementSelectionMode.Extended)]
public ElementSelectionMode SelectionMode { get; set; }
<DefaultValue(ElementSelectionMode.Extended)>
Public Property SelectionMode As ElementSelectionMode
| Type | Default | Description |
|---|---|---|
| ElementSelectionMode | Extended |
An ElementSelectionMode enumeration member specifying the map’s selection behavior.
|
Available values:
| Name | Description |
|---|---|
| None |
The selection of a map element is disabled.
| | Single |
Selects the only map element.
| | Multiple |
Selects multiple map elements.
| | Extended |
Selects multiple consecutive map elements while holding down the SHIFT key.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectionMode property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
case DashboardItemMasterFilterMode.None:
map.SelectionMode = ElementSelectionMode.None;
vectorLayer.EnableHighlighting = false;
Case DashboardItemMasterFilterMode.None
map.SelectionMode = ElementSelectionMode.None
vectorLayer.EnableHighlighting = False
See Also