This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Classes > T > TraverseWindow Class (ArcObjects .NET 10.5 SDK) |
Dialog for creating traverses.
TraverseWindow is a non-creatable object. References to non-creatable objects must be obtained through other objects.
Interfaces | Description |
---|---|
IExtension (esriSystem) | Provides access to members that define an extension. |
ITraverseWindow | Provides access to members that interact with the Traverse Window dialog. |
ITraverseWindow2 | Provides access to members that interact with the Traverse Window dialog. |
Interfaces | Description |
---|---|
ITraverseWindowEvents (default) | Provides access to Traverse Window events. Implement it to listen to specific events that occur when the Traverse Window is used. |
The TraverseWindow is used to work with features created with Coordinate Geometry (COGO) descriptions. The TraverseWindow is an editor extension; use IEditor::FindExtension to obtain a reference to it.
The following code snippet illustrates how to obtain a reference to the TraverseWindow.
public void GetTraverseWindowByCLSID()
{
//You can get app from ICommand :: OnCreate() hook parameter
UID editorUid=new UIDClass();
editorUid.Value="esriEditor.Editor";
IEditor editor=app.FindExtensionByCLSID(editorUid) as IEditor;
//Get a reference to the traverse window
UID extUid=new UIDClass();
extUid.Value="esriEditor.TraverseWindow";
ITraverseWindow traverseWindow=editor.FindExtension(extUid) as ITraverseWindow;
}
The following code snippet illustrates how to obtain a reference to the TraverseWindow.
Public Sub GetTraverseWindowByCLSID()
'You can get app from ICommand :: OnCreate() hook parameter
Dim editorUid As UID=New UIDClass()
editorUid.Value="esriEditor.Editor"
Dim editor As IEditor=TryCast(app.FindExtensionByCLSID(editorUid), IEditor)
'Get a reference to the traverse window
Dim extUid As UID=New UIDClass()
extUid.Value="esriEditor.TraverseWindow"
Dim traverseWindow As ITraverseWindow=TryCast(editor.FindExtension(extUid), ITraverseWindow)
End Sub
When working with TraverseWindow's default outbound interface in Visual Basic 6 declare variables as follows:
Private WithEvents pTraverseWindow as TraverseWindow