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


TraverseWindow Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Classes > T > TraverseWindow Class
ArcGIS Developer Help

TraverseWindowClass Class

Dialog for creating traverses.

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.
ITraverseWindowEvents 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