ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / ShowElevationProfileGraph Method / ShowElevationProfileGraph(MapMember,IEnumerable<Int64>,ElevationProfileParameters) Method
The line layer.
The set of object ids of the line features to use.
The set of profile parameters. If null, the default set of parameters is used.

In This Topic
    ShowElevationProfileGraph(MapMember,IEnumerable<Int64>,ElevationProfileParameters) Method
    In This Topic
    Shows an elevation profile of a set of line features. The calculation is performed according to the profileParameters specified. The profileParameters allows you to specify the elevation surface layer the calculation is performed against along with whether the generated elevation profile line is densified.
    Syntax
    Public Overloads Sub ShowElevationProfileGraph( _
       ByVal lineLayer As MapMember, _
       ByVal oids As IEnumerable(Of Long), _
       Optional ByVal profileParameters As ElevationProfileParameters _
    ) 

    Parameters

    lineLayer
    The line layer.
    oids
    The set of object ids of the line features to use.
    profileParameters
    The set of profile parameters. If null, the default set of parameters is used.
    Exceptions
    ExceptionDescription
    lineLayer or oids is null.
    An elevation profile cannot be displayed on the current map.
    The specified profileParameters are invalid.
    The Map does not have a visible Ground Surface Layer.
    The Map does not have the specified surfaceLayer.
    Remarks
    Pass null for the profileParameters if you want to use the default values; that is the Ground Surface layer is used to calculate the Z values and the generated elevation profile line is densified.

    Use the ElevationProfileGraphAdded delegate to determine when the elevation profile graph is added to the mapView. Once this has occurred, MapView.GetElevationProfileGraph will return a non-null ElevationProfileGraph.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also