Skip to main content
All docs
V23.2

BeforeMeasurementEventArgs.RulerAppearance Property

Specifies ruler appearance settings.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

Declaration

public RulerAppearance RulerAppearance { get; set; }

Property Value

Type Description
RulerAppearance

Contains ruler appearance settings.

Remarks

The following example changes the ruler’s color and width:

Map ruler style

RulerAppearance style = new RulerAppearance();
style.Stroke= Brushes.DarkRed;
style.Fill = Brushes.Red;
style.StrokeStyle = new StrokeStyle() { Thickness = 3};

MapRuler ruler = mapControl1.Measurements.CreateRuler(RulerType.Distance,
                                                      new List<CoordPoint>(){
                                                        new GeoPoint(48.864716, 2.349014),   // Paris
                                                        new GeoPoint(45.46427, 9.18951),     // Milan
                                                        new GeoPoint(48.20849, 16.37208) },  // Vienna
                                                      style); 
See Also