windowsforms-devexpress-dot-xtramap-dot-measurements-916dcc05.md
Returns the Measurements toolbar options.
Namespace : DevExpress.XtraMap
Assembly : DevExpress.XtraMap.v25.2.dll
NuGet Package : DevExpress.Win.Map
public MeasurementToolbarOptions ToolbarOptions { get; }
Public ReadOnly Property ToolbarOptions As MeasurementToolbarOptions
| Type | Description |
|---|---|
| MeasurementToolbarOptions |
The Measurements toolbar options.
|
You can use the ToolbarOptions property to manage the Add Area Ruler and Add Distance Ruler visibility. Specify the MeasurePanelOptions.ShowAreaButton and MeasurePanelOptions.ShowDistanceButton properties for this purpose:
mapControl1.Measurements.ShowToolbar = true;
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = true;
mapControl1.Measurements.ToolbarOptions.ShowDistanceButton = false;
mapControl1.Measurements.ShowToolbar = True
mapControl1.Measurements.ToolbarOptions.ShowAreaButton = True
mapControl1.Measurements.ToolbarOptions.ShowDistanceButton = False
See Also