ArcGIS Pro 3.4 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 static bool GetShowRootNodes( 
       MapView mapView
    )
    Public Shared Function GetShowRootNodes( _
       ByVal mapView As MapView _
    ) As Boolean

    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