Back to Devexpress

Measurements.Style Property

windowsforms-devexpress-dot-xtramap-dot-measurements-b740860f.md

latest2.4 KB
Original Source

Measurements.Style Property

Returns ruler style options.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public MapRulerStyle Style { get; }
vb
Public ReadOnly Property Style As MapRulerStyle

Property Value

TypeDescription
MapRulerStyle

The ruler style options.

|

Remarks

Use the Style property to define the style for all rulers on the map. The following example changes the ruler’s fill color, transparency, outline color, and outline width:

csharp
mapControl1.Measurements.Style.Fill= Color.OrangeRed;
mapControl1.Measurements.Style.AreaTransparency = 100;
mapControl1.Measurements.Style.Stroke = Color.DarkRed;
mapControl1.Measurements.Style.StrokeWidth = 2;
vb
mapControl1.Measurements.Style.Fill = Color.OrangeRed
mapControl1.Measurements.Style.AreaTransparency = 100
mapControl1.Measurements.Style.Stroke = Color.DarkRed
mapControl1.Measurements.Style.StrokeWidth = 2

Related API members:

|

Name

|

Description

| | --- | --- | |

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

MapRuler

Measurements Class

Measurements Members

DevExpress.XtraMap Namespace