MapRulerStyle Class
Contains ruler style options.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.1.dll
NuGet Package: DevExpress.Win.Map
Declaration
Related API Members
The following members 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 |
---|---|
Creates a ruler with the specified style. | |
| Contains ruler style options. |
Gets or sets the area ruler’s transparency. | |
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. | |
Gets or sets the ruler’s outline color. | |
Gets or sets the ruler’s outline width. |
Inheritance
See Also