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


IEngineNAWindow.Selection Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineNAWindow Interface > IEngineNAWindow.Selection Property
ArcGIS Developer Help

IEngineNAWindow.Selection Property

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**

Product Availability

Available with ArcGIS Engine.

Description

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.

See Also

IEngineNAWindow Interface