ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationProfileParameters Class / DistanceUnit Property

In This Topic
    DistanceUnit Property (ElevationProfileParameters)
    In This Topic
    Gets and sets the distance unit used for the elevation profile values and statistics. Default value is null. If null is specified, then the current value in the Elevation Profile dock pane is used.
    Syntax
    public DisplayUnitFormat DistanceUnit {get; set;}
    Public Property DistanceUnit As DisplayUnitFormat
    Remarks
    Note that only meters, kilometers, feet, yards and miles are supported. All other values are invalid and will cause MapView.ShowElevationProfileGraph to throw an ArgumentException.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also