Back to Devexpress

MeasurementToolbarOptions.ShowAreaButton Property

windowsforms-devexpress-dot-xtramap-dot-measurementtoolbaroptions-49dd8e63.md

latest2.3 KB
Original Source

MeasurementToolbarOptions.ShowAreaButton Property

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

Declaration

csharp
[DefaultValue(true)]
public bool ShowAreaButton { get; set; }
vb
<DefaultValue(True)>
Public Property ShowAreaButton As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowAreaButton
Measurements

.ToolbarOptions .ShowAreaButton

|

Remarks

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

csharp
mapControl1.Measurements.ShowToolbar = true;
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = true;
mapControl1.Measurements.ToolbarOptions.ShowDistanceButton = false;
vb
mapControl1.Measurements.ShowToolbar = True
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = True
mapControl1.Measurements.ToolbarOptions.ShowDistanceButton = False

See Also

ShowDistanceButton

MeasurementToolbarOptions Class

MeasurementToolbarOptions Members

DevExpress.XtraMap Namespace