windowsforms-devexpress-dot-xtramap-dot-measurementtoolbaroptions-49dd8e63.md
Specifies whether the Add Area Ruler button is displayed on the Measurements toolbar.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
[DefaultValue(true)]
public bool ShowAreaButton { get; set; }
<DefaultValue(True)>
Public Property ShowAreaButton As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
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
|
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;
mapControl1.Measurements.ShowToolbar = True
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = True
mapControl1.Measurements.ToolbarOptions.ShowDistanceButton = False
See Also
MeasurementToolbarOptions Class