Back to Devexpress

MeasurementToolbarOptions.ShowAreaButton Property

wpf-devexpress-dot-xpf-dot-map-dot-measurementtoolbaroptions-e452a1d7.md

latest2.5 KB
Original Source

MeasurementToolbarOptions.ShowAreaButton Property

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

Declaration

csharp
public bool ShowAreaButton { get; set; }
vb
Public Property ShowAreaButton As Boolean

Property Value

TypeDescription
Boolean

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

| | MeasurementToolbar |

.Options .ShowAreaButton

|

Remarks

The following examples hide the Add Area Ruler button.

In markup:

xaml
<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:

csharp
mapControl1.Measurements = new Measurements();
mapControl1.Measurements.ToolbarOptions = new MeasurementToolbarOptions();
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = false;
vb
mapControl1.Measurements = New Measurements()
mapControl1.Measurements.ToolbarOptions = New MeasurementToolbarOptions()
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = False

See Also

MeasurementToolbarOptions Class

MeasurementToolbarOptions Members

DevExpress.Xpf.Map Namespace