Back to Devexpress

MapItem.Stroke Property

windowsforms-devexpress-dot-xtramap-dot-mapitem-49be63e4.md

latest2.4 KB
Original Source

MapItem.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 virtual Color Stroke { get; set; }
vb
Public Overridable Property Stroke As Color

Property Value

TypeDescription
Color

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

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/WaypointMap/WaypointMapItemControlProvider.cs#L129

csharp
shape.IsGeodesic = true;
shape.Stroke = defaultLineColor;
shape.StrokeWidth = 3;

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

vb
shape.IsGeodesic = True
shape.Stroke = defaultLineColor
shape.StrokeWidth = 3

See Also

MapItem Class

MapItem Members

DevExpress.XtraMap Namespace