windowsforms-devexpress-dot-xtramap-dot-mapitemstyle.md
Gets or sets the color that is used to fill a map item.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public Color Fill { get; set; }
Public Property Fill As Color
| Type | Description |
|---|---|
| Color |
A Color that specifies the color used to fill a map item.
|
When the Fill property is set for map rulers, the fill color is also used to draw the outline border of area rulers and distance ruler borders.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Fill 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#L102
vectorLayer.Data = adapter;
vectorLayer.ItemStyle.Fill = Color.FromArgb(74, 212, 255);
vectorLayer.ItemStyle.Stroke = Color.Gray;
VectorItemsLayer layer = new VectorItemsLayer() {Data = adapter};
layer.ItemStyle.Fill = Color.FromArgb(40, 255, 128, 0);
layer.DataLoaded +=layer_DataLoaded;
winforms-map-customize-mini-map-layers/VB/MiniMapLayers/Form1.vb#L76
vectorLayer.Data = adapter
vectorLayer.ItemStyle.Fill = System.Drawing.Color.FromArgb(74, 212, 255)
vectorLayer.ItemStyle.Stroke = System.Drawing.Color.Gray
Dim layer As VectorItemsLayer = New VectorItemsLayer() With {.Data = adapter}
layer.ItemStyle.Fill = Color.FromArgb(40, 255, 128, 0)
AddHandler layer.DataLoaded, AddressOf layer_DataLoaded
See Also