BeforeMeasurementEventArgs.Style Property
In This Article
Returns style settings of the new ruler.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
NuGet Package: DevExpress.Win.Map
#Declaration
public MapRulerStyle Style { get; set; }
#Property Value
Type | Description |
---|---|
Map |
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