Back to Devexpress

MapItemStyle.Stroke Property

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

latest3.0 KB
Original Source

MapItemStyle.Stroke Property

Gets or sets the color that specifies how the map item outline is painted.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public Color Stroke { get; set; }
vb
Public Property Stroke As Color

Property Value

TypeDescription
Color

A Color value that specifies how the map item outline is painted.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Stroke 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-map-customize-mini-map-layers/CS/MiniMapLayers/Form1.cs#L103

csharp
vectorLayer.ItemStyle.Fill = Color.FromArgb(74, 212, 255);
vectorLayer.ItemStyle.Stroke = Color.Gray;

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

csharp
routeInfoLayer.ItemStyle.StrokeWidth = 2;
routeInfoLayer.ItemStyle.Stroke = Color.DeepSkyBlue;
routeInfoLayer.Error += RouteInfoLayer_Error;

winforms-map-customize-mini-map-layers/VB/MiniMapLayers/Form1.vb#L77

vb
vectorLayer.ItemStyle.Fill = System.Drawing.Color.FromArgb(74, 212, 255)
vectorLayer.ItemStyle.Stroke = System.Drawing.Color.Gray
miniMap.Layers.Add(mapLayer)

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

vb
routeInfoLayer.ItemStyle.StrokeWidth = 2
routeInfoLayer.ItemStyle.Stroke = Color.DeepSkyBlue
AddHandler routeInfoLayer.Error, AddressOf RouteInfoLayer_Error

See Also

MapItemStyle Class

MapItemStyle Members

DevExpress.XtraMap Namespace