This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IS > ISnapEnvironment Interface > ISnapEnvironment.AddSnapAgent Method (ArcObjects .NET 10.5 SDK) |
Adds a new snap agent to the snap environment.
[Visual Basic .NET] Public Sub AddSnapAgent ( _ ByVal SnapAgent As ISnapAgent _ )
[C#] public void AddSnapAgent ( ISnapAgent SnapAgent );
AddSnapAgent activates and adds to the snap environment any valid snap agent, such as FeatureSnap, AnchorSnap, or PerpendicularSnap.