Back to Devexpress

MapControl.SelectionMode Property

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-69427f9f.md

latest3.1 KB
Original Source

MapControl.SelectionMode Property

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

Declaration

csharp
[DefaultValue(ElementSelectionMode.Extended)]
public ElementSelectionMode SelectionMode { get; set; }
vb
<DefaultValue(ElementSelectionMode.Extended)>
Public Property SelectionMode As ElementSelectionMode

Property Value

TypeDefaultDescription
ElementSelectionModeExtended

An ElementSelectionMode enumeration member specifying the map’s selection behavior.

|

Available values:

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

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/WaypointMap/WaypointMapItemControlProvider.cs#L114

csharp
case DashboardItemMasterFilterMode.None:
    map.SelectionMode = ElementSelectionMode.None;
    vectorLayer.EnableHighlighting = false;

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/WaypointMap/WaypointMapItemControlProvider.vb#L124

vb
Case DashboardItemMasterFilterMode.None
    map.SelectionMode = ElementSelectionMode.None
    vectorLayer.EnableHighlighting = False

See Also

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace