wpf-devexpress-dot-xpf-dot-map-dot-beforemeasurementeventargs-6ae94cb5.md
Specifies ruler appearance settings.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public RulerAppearance RulerAppearance { get; set; }
Public Property RulerAppearance As RulerAppearance
| Type | Description |
|---|---|
| RulerAppearance |
Contains ruler appearance settings.
|
The following example changes the ruler’s color and width:
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);
Dim style As RulerAppearance = New RulerAppearance()
style.Stroke = Brushes.DarkRed
style.Fill = Brushes.Red
style.StrokeStyle = New StrokeStyle() With {
.Thickness = 3
}
Dim ruler As MapRuler = mapControl1.Measurements.CreateRuler(RulerType.Distance,
New List(Of CoordPoint)() From {
New GeoPoint(48.864716, 2.349014), ' Paris
New GeoPoint(45.46427, 9.18951), ' Milan
New GeoPoint(48.20849, 16.37208)}, ' Vienna
style)
See Also
BeforeMeasurementEventArgs Class