windowsforms-devexpress-dot-xtramap-dot-mapitemstyle-ce9b2039.md
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
[DefaultValue(-1)]
public int StrokeWidth { get; set; }
<DefaultValue(-1)>
Public Property StrokeWidth As Integer
| Type | Default | Description |
|---|---|---|
| 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
);
routeInfoLayer.ItemStyle.StrokeWidth = 2;
routeInfoLayer.ItemStyle.Stroke = Color.DeepSkyBlue;
map-for-winforms-azure-routing/VB/Form1.vb#L37
mapControl.Layers.AddRange(New LayerBase() {imageLayer, imageLayer1, routeInfoLayer, vectorItemsLayer})
routeInfoLayer.ItemStyle.StrokeWidth = 2
routeInfoLayer.ItemStyle.Stroke = Color.DeepSkyBlue
See Also