Skip to main content
A newer version of this page is available. .
All docs
V20.2

MeasurementToolbarOptions.ShowDistanceButton Property

Specifies whether the Add Distance Ruler button is displayed on the Measurements toolbar.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

[DefaultValue(true)]
public bool ShowDistanceButton { get; set; }

Property Value

Type Default Description
Boolean **true**

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

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowDistanceButton
Measurements
.ToolbarOptions .ShowDistanceButton

Remarks

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

mapControl1.Measurements.ShowToolbar = true;
mapControl1.Measurements.ToolbarOptions.ShowDistanceButton = true;
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = false;
See Also