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


IEngineSnapEnvironment.AddSnapAgent Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

IEngineSnapEnvironment.AddSnapAgent Method

Adds a new snap agent to the snap environment.

[Visual Basic .NET]
Public Sub AddSnapAgent ( _
    ByVal SnapAgent As IEngineSnapAgent _
)
[C#]
public void AddSnapAgent (
    IEngineSnapAgent SnapAgent
);
[C++]
HRESULT AddSnapAgent(
  IEngineSnapAgent* SnapAgent
);
[C++]

Parameters SnapAgent [in]
SnapAgent is a parameter of type IEngineSnapAgent

Product Availability

Available with ArcGIS Engine.

Description

AddSnapAgent activates and adds to the snap environment any valid snap agent. Snap agents which have already been added are not changed by this method. Snap agents are identified by their SnapAgent.Name and GUID.

See Also

IEngineSnapEnvironment Interface

.NET Samples

Managing snap agents (Code Files: SnapEditorForm)

.NET Related Topics

How to work with the snap environment