public static SelectionSet SelectAllRootNodes( MapView mapView )
Public Shared Function SelectAllRootNodes( _ ByVal mapView As MapView _ ) As SelectionSet
Parameters
- mapView
 
Return Value
The set of root nodes as a SelectionSet
public static SelectionSet SelectAllRootNodes( MapView mapView )
Public Shared Function SelectAllRootNodes( _ ByVal mapView As MapView _ ) As SelectionSet
| Exception | Description | 
|---|---|
| System.ArgumentNullException | Map cannot be null. | 
| System.ArgumentException | Map is not a link chart. | 
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. | 
await QueuedTask.Run(() => { var mapSel = MapView.Active.SelectAllRootNodes(); // this is the same as MapMemberIDSet rootNodes = MapView.Active.GetRootNodes(); SelectionSet selSet = SelectionSet.FromMapMemberIDSet(rootNodes); MapView.Active.Map.SetSelection(selSet); });
Target Platforms: Windows 11, Windows 10