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


IGraphicSnapEnvironment2 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGraphicSnapEnvironment2 Interface
ArcGIS Developer Help

IGraphicSnapEnvironment2 Interface

Provides access to members that control the Collection of snap agents used for snapping graphics.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Method AddSnapAgent Add a new snap agent to the environment.
Method ClearSnapAgents Remove all snap agents.
Method DeleteSnapAgent Remove specified snap agent from the environment.
Read-only property SnapAgent The snap agent at the specified index. The index argument is zero based.
Read-only property SnapAgentCount The number of snap agents.
Read/write property SnapAgentOrder An array of IDs indicating how agents should be ordered.
Method SnapShape Snap the shape using the agents in the environment.
Method SnapShapeEx Snap the shape using the agents in the environment.
Read/write property SnapTolerance The snap tolerance in page units.

Classes that implement IGraphicSnapEnvironment2

Classes Description
GraphicSnapEnvironment Collection of Snap Agents used to snap a graphic point.
PageLayout Page Layout class contains maps and map surrounds.