Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RulerAppearance Class

Contains ruler appearance settings.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public class RulerAppearance

The following members return RulerAppearance objects:

#Remarks

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);

#Inheritance

Object
RulerAppearance
See Also