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


INAWindow.Selection Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalystUI)  

INAWindow.Selection Property

The current selection in the window.

[Visual Basic .NET]
Public ReadOnly Property Selection As ISelection
[C#]
public ISelection Selection {get;}

Product Availability

Available with ArcGIS Desktop. Requires Network Analyst Extension.

Remarks

Selection returns a reference to the ISelection interface that can be used to manipulate NALocationObjects within the NAWindow.

On the ISelection interface, use the methods prefixed with Can to determine if the other methods are supported.  For example, call CanSelectAll prior to attempting to call SelectAll.

On the ISelection interface, Clear does not unselect the selected NALocationObjects.  Rather, Clear deletes the selected NALocationObjects from the NAClass.

Calling methods on the ISelection interface that modify NALocationObjects will perform the operation within an ArcMap undo/redo operation.

See Also

INAWindow Interface