ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / KnowledgeGraphMappingExtensions Class / GetShowRootNodes Method
Example Version

GetShowRootNodes Method
Gets whether root nodes are displayed for the link chart map view.
Syntax
public static bool GetShowRootNodes( 
   MapView mapView
)

Parameters

mapView

Return Value

A boolean indicating if root nodes are displayed.
Exceptions
ExceptionDescription
Map cannot be null.
Map is not a link chart.
Example
Toggle Root Node Display
var val = MapView.Active.GetShowRootNodes();

await QueuedTask.Run(() =>
{
  MapView.Active.SetShowRootNodes(!val);
});
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.4 or higher.
See Also