All docs
V20.2
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.

BeforeMeasurementEventArgs.Style Property

Returns style settings of the new ruler.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.2.dll

Declaration

public MapRulerStyle Style { get; set; }
Public Property Style As MapRulerStyle

Property Value

Type Description
MapRulerStyle

Style settings of the new ruler.

Remarks

The following example changes the ruler's outline color and width:

private void Measurements_BeforeMeasurement(object sender, BeforeMeasurementEventArgs e) {
  e.Style.Stroke = Color.Gray;
  e.Style.StrokeWidth = 4; 
}

The Map Control uses style settings from the Measurements.Style property for options that you do not define in the e.Style property. In the example above, the e.Style.AreaTransparency property is not set, so the Measurements.Style.AreaTransparency value is applied to the newly created ruler.

Additionally, if the Measurements.Style property is not set, the default ruler's style settings are used.

See Also