This document is archived and information here might be outdated. Recommended version. |
The current selection in the window.
[Visual Basic .NET] Public ReadOnly Property Selection As ISelection
[C#] public ISelection Selection {get;}
[C++]
HRESULT get_Selection(
ISelection** Selection
);
[C++] Parameters Selection [out, retval]
Selection is a parameter of type ISelection**
Selection returns a reference to the ISelection interface that can be used to manipulate a NALocationObject object within the IEngineNetworkAnalystEnvironment::NAWindow.
On the ISelection interface, use the methods prefixed with "Can" to determine if the other methods are supported. For example, call the CanSelectAll method prior to attempting to call the SelectAll method.
On the ISelection interface, Clear does not unselect the selected NALocationObject. Rather, Clear deletes the selected NALocationObject from the NAClass.
Calling methods on the ISelection interface that modify an NALocationObject object will perform the operation within an undo/redo operation.