ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.KnowledgeGraph Namespace / KnowledgeGraphInvestigation Class / GetInvestigationPanes Method
Example

In This Topic
    GetInvestigationPanes Method
    In This Topic
    Get the collection of investigation panes for the investigation.
    Syntax

    Return Value

    Example
    Get the panes for an investigation
    {
      // open an existing investigation
      var investigationProjectItems = Project.Current.GetItems<KnowledgeGraphInvestigationProjectItem>();
      var investigationProjectItem = investigationProjectItems.FirstOrDefault(ipi => ipi.Name.Equals("myInvestigation"));
      await QueuedTask.Run(() =>
      {
        KnowledgeGraphInvestigation investigation = investigationProjectItem.GetInvestigation();
        var panes = investigation.GetInvestigationPanes();
    
        foreach (var pane in panes)
        {
          KnowledgeGraphInvestigationView kgView = pane.InvestigationView;
          // if it's the active investigation view
          if (kgView == KnowledgeGraphInvestigationView.Active)
          {
            // do something
          }
        }
      });
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.5 or higher.
    See Also