|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGraphicSnapEnvironment2 Interface > IGraphicSnapEnvironment2.SnapAgent Property (ArcObjects .NET 10.4 SDK) | 
The snap agent at the specified index. The index argument is zero based.
[Visual Basic .NET] Public Function get_SnapAgent ( _ ByVal Index As Integer _ ) As IGraphicSnap
[C#] public IGraphicSnap get_SnapAgent ( int Index );
[C++]
HRESULT get_SnapAgent(
  long Index,
  IGraphicSnap** SnapAgent
);
[C++]
Parameters Index [in] Index is a parameter of type long SnapAgent [out, retval]
SnapAgent is a parameter of type IGraphicSnap