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

ISurface.ContourList Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IS > ISurface Interface > ISurface.ContourList Method
ArcGIS Developer Help

ISurface.ContourList Method

Output a list of contours corresponding to the specified eleveation values.

[Visual Basic .NET]
Public Sub ContourList ( _
    ByVal pBreaks As IDoubleArray, _
    ByVal pFeatureClass As IFeatureClass, _
    ByVal FieldName As String, _
    ByVal digitsAfterDecimalPoint As Integer _
public void ContourList (
    IDoubleArray pBreaks,
    IFeatureClass pFeatureClass,
    string FieldName,
    int digitsAfterDecimalPoint
HRESULT ContourList(
  IDoubleArray* pBreaks,
  IFeatureClass* pFeatureClass,
  BSTR FieldName,
  long digitsAfterDecimalPoint
pBreaks [in]

pBreaks is a parameter of type IDoubleArray* pFeatureClass
pFeatureClass is a parameter of type IFeatureClass* FieldName [in]
FieldName is a parameter of type BSTR digitsAfterDecimalPoint [in]
digitsAfterDecimalPoint is a parameter of type long

Product Availability

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


Creates contours, based on a list of heights, sending the ouput to a polyline based feature class.

The pBreaks height list contains the elevation values for which contours will be derived.

Contours will be written to the specified 2D polyline feature class. It should be an empty feature class and is typically created immediately before calling Contour.

Do not have WorkspaceEdit turned on as this member needs to add a field to the feature class, a scheme editing operation not supported by WorkspaceEdit.

fieldName is used to name the field added to the feature class to store each contour's height.

digitsAfterDecimalPoint controls the precision of the output height values. Use a value of 0 if you want heights recorded as integers, as is likely when both the rootHeight and interval values are integers.

See Also

ISurface Interface