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


ISnapEnvironment2 Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Editor)  

ISnapEnvironment2 Interface

Provides access to members used to manipulate the snap environment for Zs. Note: the ISnapEnvironment2 interface has been superseded byISnapEnvironment3. 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.

Members

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.

CoClasses that implement ISnapEnvironment2

CoClasses and Classes Description
Editor The Object Editor Extension.

Remarks

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

.NET Related Topics

Updating geometry of existing features | Working with the editor snap environment