Back to Devexpress

MapItemStyle.Fill Property

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

latest3.5 KB
Original Source

MapItemStyle.Fill Property

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

Declaration

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

Property Value

TypeDescription
Color

A Color that specifies the color used to fill a map item.

|

Remarks

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

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

winforms-map-load-cartesian-data-to-a-map-control-with-a-coordinate-converter/CS/BuildInCoordinateConverters/Form1.cs#L79

csharp
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

vb
vectorLayer.Data = adapter
vectorLayer.ItemStyle.Fill = System.Drawing.Color.FromArgb(74, 212, 255)
vectorLayer.ItemStyle.Stroke = System.Drawing.Color.Gray

winforms-map-load-cartesian-data-to-a-map-control-with-a-coordinate-converter/VB/BuildInCoordinateConverters/Form1.vb#L33

vb
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

MapItemStyle Class

MapItemStyle Members

DevExpress.XtraMap Namespace