Skip to main content
All docs
V23.2

RulerAppearance.Fill Property

Gets or sets the Brush object used to fill an area ruler.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v23.2.dll

NuGet Package: DevExpress.Wpf.Map

Declaration

public Brush Fill { get; set; }

Property Value

Type Description
Brush

The Brush object used to fill an area ruler.

Remarks

The Fill property value is also used to draw the outline border of area rulers and distance ruler borders.

The following example creates an area ruler and uses an instance of the RulerAppearance class to specify the ruler’s fill color, opacity, outline color, and outline width:

RulerAppearance rulerStyle = new RulerAppearance();
rulerStyle.AreaOpacity = 0.7;
rulerStyle.Fill = Brushes.CornflowerBlue;
rulerStyle.Stroke = Brushes.DarkBlue;
rulerStyle.StrokeStyle =new StrokeStyle() { Thickness = 3 };
MapRuler ruler = mapControl1.Measurements.CreateRuler(RulerType.Area, 
                                                      new List<CoordPoint>() { new GeoPoint(10, 0), 
                                                                               new GeoPoint(20, 0),
                                                                               new GeoPoint(20, 10)}, 
                                                      rulerStyle);
See Also