public static MapMemberIDSet GetRootNodes( MapView mapView )
Public Shared Function GetRootNodes( _ ByVal mapView As MapView _ ) As MapMemberIDSet
Parameters
- mapView
public static MapMemberIDSet GetRootNodes( MapView mapView )
Public Shared Function GetRootNodes( _ ByVal mapView As MapView _ ) As MapMemberIDSet
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(() => { MapMemberIDSet rootNodes = MapView.Active.GetRootNodes(); var rootNodeDict = rootNodes.ToDictionary(); // rootNodeDict is a Dictionary<MapMember, List<long>> // access a particular mapMember in the Dictionary if (rootNodeDict.ContainsKey(mapMember)) { var oids = rootNodeDict[mapMember]; } // OR iterate through the dictionary foreach (var (mm, oids) in rootNodeDict) { // do something } });
Target Platforms: Windows 11, Windows 10