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;
}
}