Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MeasurementToolbarOptions.ShowAreaButton Property

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

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v24.2.dll

NuGet Package: DevExpress.Wpf.Map

#Declaration

public bool ShowAreaButton { get; set; }

#Property Value

Type Description
Boolean

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
MeasurementToolbar
.Options .ShowAreaButton

#Remarks

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;
See Also