ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / KnowledgeGraphMappingExtensions Class / GetShowNonSpatialData Method
Example

In This Topic
    GetShowNonSpatialData Method
    In This Topic
    Gets whether non spatial data are displayed for the knowledge graph layer in the link chart map view.
    Syntax
    public static bool GetShowNonSpatialData( 
       MapView mapView
    )
    Public Shared Function GetShowNonSpatialData( _
       ByVal mapView As MapView _
    ) As Boolean

    Parameters

    mapView

    Return Value

    A boolean indicating if non spatial data are displayed.
    Exceptions
    ExceptionDescription
    Map cannot be null.
    Map is not a link chart.
    Remarks
    Non spatial data are entities without geometry and relationships that connect to at least one non spatial entity.
    Example
    Non spatial data
    await QueuedTask.Run(() =>
    {
      // display non spatial data
      MapView.Active.SetShowNonSpatialData(true);
    
      // select the current set of non spatial data
      var selNonSpatial = MapView.Active.SelectNonSpatialData();
      
      // perform some action
    
      // select the current set of spatial data
      var selSpatial = MapView.Active.SelectSpatialData();
      
      // perform some other action
    });
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also