Back to Devexpress

MeasurementToolbarOptions.ShowDistanceButton Property

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

latest2.3 KB
Original Source

MeasurementToolbarOptions.ShowDistanceButton Property

Specifies whether the Add Distance 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 ShowDistanceButton { get; set; }
vb
<DefaultValue(True)>
Public Property ShowDistanceButton As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowDistanceButton
Measurements

.ToolbarOptions .ShowDistanceButton

|

Remarks

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

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

See Also

ShowAreaButton

MeasurementToolbarOptions Class

MeasurementToolbarOptions Members

DevExpress.XtraMap Namespace