windowsforms-devexpress-dot-xtramap-dot-mapitem-232b599d.md
Gets or sets the map item’s outline width.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
[DefaultValue(-1)]
public virtual int StrokeWidth { get; set; }
<DefaultValue(-1)>
Public Overridable Property StrokeWidth As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | -1 |
An integer value that specifies stroke width.
|
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.
shape.Stroke = defaultLineColor;
shape.StrokeWidth = 3;
shape.SelectedStroke = SelectionLineColor;
shape.Stroke = defaultLineColor
shape.StrokeWidth = 3
shape.SelectedStroke = SelectionLineColor
See Also