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


IEditorZ.ZCaptureType Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditorZ Interface > IEditorZ.ZCaptureType Property
ArcGIS Developer Help

IEditorZ.ZCaptureType Property

Determines method used for z-capture.

[Visual Basic .NET]
Public Property ZCaptureType As esriZCaptureType
[C#]
public esriZCaptureType ZCaptureType {get; set;}

Product Availability

Available with ArcGIS Desktop.

Remarks

ZCaptureType defines the current method the editor uses to assign z-values for newly created or edited vertices. The default value is esriZCaptureCurrentZ. When using one either esriCaptureInterpolateZ or esriCaptureSurfaceZ, the resulting z-value may not be defined; if these sources do not produce a valid z-value (non-NaN) then the editor applies the value defined in IEditSketch2::CurrentZ.

[C#]
private void SetZDrapingProps(ESRI.ArcGIS.Editor.IEditor editor)
{
  // the following code snippet determines the z capture source and
  // if it is a surface then sets up some capture properties that apply
  IEditorZ editorZ = m_editor as IEditorZ;  
  if (editorZ.ZCaptureType == esriZCaptureType.esriCaptureSurfaceZ)
  {
    editorZ.Draping = true;
    editorZ.UseZDrapingTolerance = true;
    editorZ.ZDrapingTolerance = 2;
  }
}

See Also

IEditorZ Interface