All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Measurements.ToolbarOptions Property

Returns the Measurements toolbar options.

Namespace: DevExpress.Xpf.Map

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

Declaration

public MeasurementToolbarOptions ToolbarOptions { get; set; }

Property Value

Type Description
MeasurementToolbarOptions

The Measurements toolbar options.

Remarks

You can use the ToolbarOptions property to manage the visibility of the Add Area Ruler and Add Distance Ruler buttons. To set the visibility of these buttons, specify the MeasurePanelOptions.ShowAreaButton and MeasurePanelOptions.ShowDistanceButton properties.

The markup below hides the Add Distance Ruler button:

<dxm:MapControl.Measurements >
  <dxm:Measurements >
      <dxm:Measurements.ToolbarOptions>
          <dxm:MeasurementToolbarOptions ShowDistanceButton="False"/>
      </dxm:Measurements.ToolbarOptions>
  </dxm:Measurements>
</dxm:MapControl.Measurements>

The following code hides the Add Area Ruler button:

mapControl1.Measurements = new Measurements();
mapControl1.Measurements.ToolbarOptions = new MeasurementToolbarOptions();
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = false;
See Also