Public Shared Function SelectAllRootNodes( _ ByVal mapView As MapView _ ) As SelectionSet
public static SelectionSet SelectAllRootNodes( MapView mapView )
Parameters
- mapView
Return Value
The set of root nodes as a SelectionSet
Public Shared Function SelectAllRootNodes( _ ByVal mapView As MapView _ ) As SelectionSet
public static SelectionSet SelectAllRootNodes( MapView mapView )
| 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 Home, Pro, Enterprise (64 bit)