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

In This Topic
    IsExpanded Property (ElevationProfileGraph)
    In This Topic
    Gets and sets if the elevation profile graph is expanded.
    Syntax
    Public Property IsExpanded As Boolean
    public bool IsExpanded {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