Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    Measurements.ToolbarOptions Property

    Returns the Measurements toolbar options.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v25.1.dll

    NuGet Package: DevExpress.Win.Map

    #Declaration

    public MeasurementToolbarOptions ToolbarOptions { get; }

    #Property Value

    Type Description
    MeasurementToolbarOptions

    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