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

In This Topic
    GetShowRootNodes Method
    In This Topic
    Gets whether root nodes are displayed for the link chart map view.
    Syntax
    Public Shared Function GetShowRootNodes( _
       ByVal mapView As MapView _
    ) As Boolean
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.4 or higher.
    See Also