Public Function GetInvestigationPanes() As IReadOnlyList(Of IKnowledgeGraphInvestigationPane)
public IReadOnlyList<IKnowledgeGraphInvestigationPane> GetInvestigationPanes()
Return Value
A IReadOnlyList of IKnowledgeGraphInvestigationPane
Public Function GetInvestigationPanes() As IReadOnlyList(Of IKnowledgeGraphInvestigationPane)
public IReadOnlyList<IKnowledgeGraphInvestigationPane> GetInvestigationPanes()
{
// 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
}
}
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)