All docs
V21.1
21.2 (EAP/Beta)
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.

MapRulerStyle Class

Contains ruler style options.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.1.dll

Declaration

public class MapRulerStyle :
    MapItemStyle

The following members accept/return MapRulerStyle objects:

Remarks

The following example creates an area ruler and changes the ruler’s fill color, transparency, outline color, and outline width:

MapRulerStyle rulerStyle = new MapRulerStyle();
rulerStyle.AreaTransparency = 170;
rulerStyle.Fill = Color.CornflowerBlue;
rulerStyle.Stroke = Color.DarkBlue;
rulerStyle.StrokeWidth = 3;
MapRuler ruler = mapControl1.Measurements.CreateRuler(RulerType.Area, 
                                                      new List<CoordPoint>() { new GeoPoint(10, 0), 
                                                                               new GeoPoint(20, 0),
                                                                               new GeoPoint(20, 10)}, 
                                                      rulerStyle);

Related API members:

Name

Description

CreateRuler(RulerType, IList<CoordPoint>, MapRulerStyle)

Creates a ruler with the specified style.

MapRulerStyle

Contains ruler style options.

AreaTransparency

Gets or sets the area ruler’s transparency.

Fill

Gets or sets the ruler’s fill color. The fill color is also used to draw the outline border of area rulers and distance ruler borders.

Stroke

Gets or sets the ruler’s outline color.

StrokeWidth

Gets or sets the ruler’s outline width.

See Also