ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Core Namespace / ElevationProfileOptions Class
Members Example

In This Topic
    ElevationProfileOptions Class
    In This Topic
    Defines the options used for the elevation profile analysis.
    Object Model
    ElevationProfileOptions ClassCIMColor ClassCIMColor ClassCIMColor ClassCIMColor Class
    Syntax
    public class ElevationProfileOptions 
    Public Class ElevationProfileOptions 
    Example
    Customize Elevation Profile Graph Display
    // customize the elevation profile graph options
    var options = new ElevationProfileOptions()
    {
      LineColor = ColorFactory.Instance.CreateRGBColor(0, 0, 100),
      ShowAverageSlope = false, 
      ShowMaximumSlope = false
    };
    
    var eaOptions = ApplicationOptions.ExploratoryAnalysisOptions;
    if (eaOptions.CanSetElevationProfileOptions(options))
      await eaOptions.SetElevationProfileOptionsAsync(options);
    
    
    // or reset to default options
    var defaultOptions = eaOptions.GetDefaultElevationProfileOptions();
    if (eaOptions.CanSetElevationProfileOptions(defaultOptions))
      await eaOptions.SetElevationProfileOptionsAsync(defaultOptions);
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Core.ElevationProfileOptions

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also