ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ElevationProfileGraph Class / CanExport Property
Example

In This Topic
    CanExport Property (ElevationProfileGraph)
    In This Topic
    Gets if the current elevation profile can be exported. Returns false if the calculation has not yet been completed.
    Syntax
    public bool CanExport {get;}
    Public ReadOnly Property CanExport As Boolean

    Property Value

    True if the elevation profile can be exported. False otherwise.
    Remarks
    Use the ContentLoaded event to determine when the calculation has been completed.
    Example
    Export Elevation Profile Graph
    var elevProfileGraph = MapView.Active.GetElevationProfileGraph();
    // Elevation profile graph will be null if no profile graph is displayed
    if (elevProfileGraph == null)
      return;
    
    if (elevProfileGraph.CanExport)
    {
      elevProfileGraph.ExportToImage("c:\\temp\\myprofileImage.png");
      elevProfileGraph.ExportToCSV("c:\\temp\\myprofile.csv");
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also