ArcObjects Library Reference (Editor)  

TraverseWindow Class

Dialog for creating traverses.

TraverseWindow is a non-creatable object. References to non-creatable objects must be obtained through other objects.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Interfaces

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.

Event Interfaces

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.

Remarks

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.

[C#]

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;
}
[Visual Basic .NET]

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

Working with Events

[Visual Basic 6.0]

When working with TraverseWindow's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pTraverseWindow as TraverseWindow