This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalystUI > ESRI.ArcGIS.NetworkAnalystUI > Classes > N > NAWindow Class (ArcObjects .NET 10.5 SDK) |
The network analysis window.
NAWindow is a non-creatable object. References to non-creatable objects must be obtained through other objects.
Interfaces | Description |
---|---|
IAcceleratorHook (esriFramework) | Provides access to a means to decide if a virtual key should act as an accelerator. |
IActiveViewEvents (esriCarto) | Provides access to events that occur when the state of the active view changes. |
IConnectionPointContainer | Supports connection points for connectable objects. |
IDocumentEvents (esriArcMapUI) | Provides access to events that occur in ArcMap. |
INAContextEvents (esriNetworkAnalyst) | Provides access to events triggered by the network analysis context. |
INAContextEvents2 (esriNetworkAnalyst) | Provides access to events triggered by the network analysis context. |
INALayerEvents (esriNetworkAnalyst) | Provides access to events triggered by the network analysis layer. |
INAWindow | Provides access to the network analysis window. |
INAWindow2 | Provides access to the network analysis window. |
IObjectClassEvents (esriGeoDatabase) | Provides access to events that occur with an object class. |
IPersistStream (esriSystem) | |
ISelectionEvents (esriCarto) | Provides access to events that occur when the selection changes. |
IWorkspaceEditEvents (esriGeoDatabase) | Provides access to events that occur to a workspace in the context of editing it. |
Interfaces | Description |
---|---|
INAWindowEvents (default) | Provides access to events triggered by the network analysis window. |
The NAWindow is a dockable window in ArcMap that helps users manage the NALayers containing the problem definition and NAClasses of NALocationObjects/NALocationFeatures.
This code shows how to get the NAWindow from the Network Analyst extension.
public INAWindow GetNAWindow(IApplication app)
{
INetworkAnalystExtension networkAnalystExtension=app.FindExtensionByName("Network Analyst") as INetworkAnalystExtension;
return networkAnalystExtension.NAWindow;
}
This code shows how to get the NAWindow from the Network Analyst extension.
Public Function GetNAWindow(ByVal app As IApplication) As INAWindow
Dim networkAnalystExtension As INetworkAnalystExtension=app.FindExtensionByName("Network Analyst")
Return networkAnalystExtension.NAWindow
End Function
When working with NAWindow's default outbound interface in Visual Basic 6 declare variables as follows:
Private WithEvents pNAWindow as NAWindow