Measurements.ToolbarOptions Property
In This Article
Returns the Measurements toolbar options.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
NuGet Package: DevExpress.Win.Map
#Declaration
public MeasurementToolbarOptions ToolbarOptions { get; }
#Property Value
Type | Description |
---|---|
Measurement |
The Measurements toolbar options. |
#Remarks
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;
See Also