ArcGIS Pro 2.7 API Reference Guide
RemoveElevationSurface(CIMMapElevationSurface) Method

ArcGIS.Desktop.Mapping Namespace > Map Class : RemoveElevationSurface(CIMMapElevationSurface) Method
Removes the elevation surface from the existing collection of elevation surfaces. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void RemoveElevationSurface( 
   CIMMapElevationSurface cimsurface
)
Public Sub RemoveElevationSurface( _
   ByVal cimsurface As CIMMapElevationSurface _
) 

Parameters

cimsurface
Exceptions
ExceptionDescription
Ground cannot be removed
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
The collection of elevation surfaces is searched for the first elevation surface with a matching ArcGIS.Core.CIM.CIMMapElevationSurface.MapElevationID. If no match is not found the method exits otherwise the matching surface is removed.
Attempting to remove the ground elevation surface will throw a System.InvalidOperationException
On success, an undo-able operation is added to the current operation manager undo stack
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Map Class
Map Members