ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Editing Namespace / ElevationCapturing Class / SetCaptureModeAsync Method

In This Topic
    SetCaptureModeAsync Method
    In This Topic
    Sets the mode for capturing elevation.
    Syntax
    public static Task SetCaptureModeAsync( 
       ElevationCaptureMode mode
    )
    Public Shared Function SetCaptureModeAsync( _
       ByVal mode As ElevationCaptureMode _
    ) As Task

    Parameters

    mode
    Remarks

    The mode cannot be set to ElevationCaptureMode.Surface if there are currently no usable elevation surface layers. An attempt to do so will be ignored - calling code should check the CaptureMode afterward, to determine if a change was actually made, or check the value of HasSurfaces prior.

    An elevation surface layer is considered usable if it is visible and has at least one elevation source layer.

    If successful, the new capture mode will be committed to the currently edited map.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also