ArcGIS Pro 3.2 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
    public sealed class SurfaceZsResult 
    Public NotInheritable Class SurfaceZsResult 
    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



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also