This document is archived and information here might be outdated.  Recommended version.

ITerrainLayer.GetCurrentSurface Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IT > ITerrainLayer Interface > ITerrainLayer.GetCurrentSurface Method
ArcGIS Developer Help

ITerrainLayer.GetCurrentSurface Method

Gets current surface.

[Visual Basic .NET]
Public Function GetCurrentSurface ( _
) As ISurface
public ISurface GetCurrentSurface (
HRESULT GetCurrentSurface(

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


GetCurrentSurface may return a NULL pointer ('Nothing' in VB). For example, it will return NULL if ITerrain.IsValid is FALSE. Therefore, check the return value before attempting to use it.

See Also

ITerrainLayer Interface