Back to Devexpress

MapItem.SelectedStrokeWidth Property

windowsforms-devexpress-dot-xtramap-dot-mapitem-45d22eaf.md

latest2.6 KB
Original Source

MapItem.SelectedStrokeWidth Property

Gets or sets a value that specifies the width of the selected stroke on the map item.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(-1)]
public int SelectedStrokeWidth { get; set; }
vb
<DefaultValue(-1)>
Public Property SelectedStrokeWidth As Integer

Property Value

TypeDefaultDescription
Int32-1

An integer value that is the width of the selected stroke on the map item.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedStrokeWidth 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#L132

csharp
shape.SelectedStroke = SelectionLineColor;
shape.SelectedStrokeWidth = 4;
shape.HighlightedStroke = highlightLineColor;

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

vb
shape.SelectedStroke = SelectionLineColor
shape.SelectedStrokeWidth = 4
shape.HighlightedStroke = highlightLineColor

See Also

MapItem Class

MapItem Members

DevExpress.XtraMap Namespace