This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IS > ISnapEnvironment Interface > ISnapEnvironment.AddSnapAgent Method (ArcObjects .NET 10.4 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.