All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

BeforeMeasurementEventArgs.RulerAppearance Property

Specifies ruler appearance settings.

Namespace: DevExpress.Xpf.Map

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

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