Back to Devexpress

MapItem.StrokeWidth Property

windowsforms-devexpress-dot-xtramap-dot-mapitem-232b599d.md

latest2.9 KB
Original Source

MapItem.StrokeWidth Property

Gets or sets the map item’s outline width.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

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

Property Value

TypeDefaultDescription
Int32-1

An integer value that specifies stroke width.

|

Remarks

For the following map vector items, the StrokeWidth property is measured in device-independent pixels (DIPs):

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

csharp
shape.Stroke = defaultLineColor;
shape.StrokeWidth = 3;
shape.SelectedStroke = SelectionLineColor;

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

vb
shape.Stroke = defaultLineColor
shape.StrokeWidth = 3
shape.SelectedStroke = SelectionLineColor

See Also

MapItem Class

MapItem Members

DevExpress.XtraMap Namespace