Skip to main content
All docs
V23.2

MeasurementToolbarOptions.ShowAreaButton Property

Specifies whether the Add Area Ruler button is displayed on the Measurements toolbar.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v23.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

[DefaultValue(true)]
public bool ShowAreaButton { get; set; }

Property Value

Type Default Description
Boolean true

true if the Add Area Ruler button is visible; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowAreaButton
Measurements
.ToolbarOptions .ShowAreaButton

Remarks

image

The following code hides the Add Distance Ruler button and displays the Add Area Ruler button:

mapControl1.Measurements.ShowToolbar = true;
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = true;
mapControl1.Measurements.ToolbarOptions.ShowDistanceButton = false;
See Also