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

ISnapEnvironment2 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IS > ISnapEnvironment2 Interface
ArcGIS Developer Help

ISnapEnvironment2 Interface

Provides access to members used to manipulate the snap environment for Zs. Note: the ISnapEnvironment2 interface has been superseded by ISnapEnvironment3. Please consider using the more recent version.

Product Availability

Available with ArcGIS Desktop.

When To Use

The ISnapEnvironment2 interface extends the ISnapEnvironment interface to support snapping behavior for z-aware features.


Name Description
Method AddSnapAgent Adds a new snap agent to the snap environment.
Method ClearSnapAgents Removes all snap agents.
Method RemoveSnapAgent Removes the snap agent at the given index.
Read-only property SnapAgent A snap agent at the given index.
Read-only property SnapAgentCount The number of active snap agents.
Method SnapPoint Attempts to snap the point using the current snap environment.
Read/write property SnapTolerance The snap tolerance, measured in pixels or map units.
Read/write property SnapToleranceUnits The units used for the snap tolerance.
Read/write property SnapZTolerance The snap tolerance used for z-values, measured in map units.
Read/write property UseSnapZTolerance Indicates whether the SnapZTolerance property is used when Z snapping.

Inherited Interfaces

Interfaces Description
ISnapEnvironment Provides access to members that manage the snap agents used by the editor.

Classes that implement ISnapEnvironment2

Classes Description
Editor The Object Editor Extension.


For more information about snapping in z, refer to Working with Zs in the editor.