ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationProfileGraph Class / IsReversed Property
Example

In This Topic
    IsReversed Property (ElevationProfileGraph)
    In This Topic
    Gets and sets if the elevation profile on the graph is reversed.
    Syntax
    Public Property IsReversed As Boolean
    public bool IsReversed {get; set;}
    Example
    Access the ElevationProfileGraph
    {
        var elevProfileGraph = MapView.Active.GetElevationProfileGraph();
        // Elevation profile graph will be null if no profile graph is displayed
        if (elevProfileGraph == null)
            return;
    
        // get the elevation profile geometry and stats
        var polyline = elevProfileGraph.Geometry;
        var stats = elevProfileGraph.ElevationProfileStatistics;
    
        // reverse the graph
        elevProfileGraph.IsReversed = !elevProfileGraph.IsReversed;
    
        // collapse the graph
        elevProfileGraph.IsExpanded = false;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.5 or higher.
    See Also