This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditorZ Interface > IEditorZ.ZCaptureType Property (ArcObjects .NET 10.4 SDK) |
Determines method used for z-capture.
[Visual Basic .NET] Public Property ZCaptureType As esriZCaptureType
[C#] public esriZCaptureType ZCaptureType {get; set;}
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.
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;
}
}