Back to Devexpress

MapItemStyle.StrokeWidth Property

windowsforms-devexpress-dot-xtramap-dot-mapitemstyle-ce9b2039.md

latest2.3 KB
Original Source

MapItemStyle.StrokeWidth Property

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

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

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

Property Value

TypeDefaultDescription
Int32-1

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

|

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.

map-for-winforms-azure-routing/CS/Form1.cs#L43

csharp
);
routeInfoLayer.ItemStyle.StrokeWidth = 2;
routeInfoLayer.ItemStyle.Stroke = Color.DeepSkyBlue;

map-for-winforms-azure-routing/VB/Form1.vb#L37

vb
mapControl.Layers.AddRange(New LayerBase() {imageLayer, imageLayer1, routeInfoLayer, vectorItemsLayer})
routeInfoLayer.ItemStyle.StrokeWidth = 2
routeInfoLayer.ItemStyle.Stroke = Color.DeepSkyBlue

See Also

MapItemStyle Class

MapItemStyle Members

DevExpress.XtraMap Namespace