ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / SurfaceZsResult Class
Members Example

In This Topic
    SurfaceZsResult Class
    In This Topic
    Defines the result of calling Map.GetZsFromSurfaceAsync()
    Object Model
    SurfaceZsResult ClassGeometry Class
    Syntax
    public sealed class SurfaceZsResult 
    Public NotInheritable Class SurfaceZsResult 
    Example
    Get Z values from a surface
    var geometry = await QueuedTask.Run<Geometry>(() =>
    {
      Geometry mapCentergeometry = MapView.Active.Map.CalculateFullExtent().Center;
      return mapCentergeometry;
    });
    //Pass any Geometry type to GetZsFromSurfaceAsync
    var surfaceZResult = await MapView.Active.Map.GetZsFromSurfaceAsync(geometry);
    return surfaceZResult;
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.SurfaceZsResult

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also