ArcObjects Library Reference  (Carto)    

ITerrainLayer.GetCurrentSurface Method

Gets current surface.

[Visual Basic 6.0]
Function GetCurrentSurface As ISurface
[Visual Basic .NET]
Public Function GetCurrentSurface ( _
) As ISurface
[C#]
public ISurface GetCurrentSurface (
);
[Java]
public ISurface getCurrentSurface (
)
throws
    IOException,
    AutomationException
[C++]
HRESULT GetCurrentSurface(
  ISurface** ppSurface
);
[C++]

Parameters

ppSurface [out, retval]

  ppSurface is a parameter of type ISurface

Product Availability

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

Description

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

 


Feedback Send feedback on this page