wpf-devexpress-dot-xpf-dot-map-dot-measurementtoolbaroptions-e452a1d7.md
Specifies whether the Add Area Ruler button is displayed in the Measurements toolbar.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public bool ShowAreaButton { get; set; }
Public Property ShowAreaButton As Boolean
| Type | Description |
|---|---|
| Boolean |
true, if the Add Area Ruler button is visible; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to ShowAreaButton |
|---|---|
| Measurements |
.ToolbarOptions .ShowAreaButton
| | MeasurementToolbar |
.Options .ShowAreaButton
|
The following examples hide the Add Area Ruler button.
In markup:
<dxm:MapControl.Measurements>
<dxm:Measurements BeforeMeasurement="Measurements_BeforeMeasurement">
<dxm:Measurements.ToolbarOptions>
<dxm:MeasurementToolbarOptions ShowAreaButton="False"/>
</dxm:Measurements.ToolbarOptions>
</dxm:Measurements>
</dxm:MapControl.Measurements>
In code:
mapControl1.Measurements = new Measurements();
mapControl1.Measurements.ToolbarOptions = new MeasurementToolbarOptions();
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = false;
mapControl1.Measurements = New Measurements()
mapControl1.Measurements.ToolbarOptions = New MeasurementToolbarOptions()
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = False
See Also
MeasurementToolbarOptions Class