ArcGIS Pro 3.5 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 bool IsExpanded {get; set;}
    Public Property IsExpanded As Boolean
    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, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also