Method GetExpanded
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
GetExpanded(string)
Gets the key values of the tree view items that are expanded for the specified key.
public string[] GetExpanded(string key)
Parameters
key
stringThe name of the destination variable.
Returns
- string[]
The keys of all expanded tree view items which have the SupportsLazyLoading property enabled.
Examples
if (_treeResults?.GetExpanded("treevar").Contains(treeViewItem.KeyValue) == true)
{
treeViewItem.ChildItems = new List<TreeViewItem>
{
// add child items
};
}
Remarks
This method can be used to check whether a tree view node is collapsed or expanded.
Feature introduced in DataMiner 10.1.2 (RN 28132).