Constructor TreeViewItem
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
TreeViewItem(TreeViewItem, T, IEnumerable<TreeViewItem<T>>)
Initializes a new instance of the TreeViewItem<T> class.
public TreeViewItem(TreeViewItem item, T value, IEnumerable<TreeViewItem<T>> childItems = null)
Parameters
itemTreeViewItemThe underlying TreeViewItem.
valueTThe value to associate with this tree view item.
childItemsIEnumerable<TreeViewItem<T>>The child items of this tree view item.
Exceptions
- ArgumentNullException
When item is null.
TreeViewItem(string, string, T, IEnumerable<TreeViewItem<T>>)
Initializes a new instance of the TreeViewItem<T> class. Creates a TreeViewItem<T> with the specified parameters.
public TreeViewItem(string keyValue, string displayValue, T value, IEnumerable<TreeViewItem<T>> childItems = null)
Parameters
keyValuestringThe unique key for the tree view item.
displayValuestringThe text to display for the tree view item.
valueTThe value to associate with this tree view item.
childItemsIEnumerable<TreeViewItem<T>>The child items of this tree view item.
Exceptions
- ArgumentNullException
When keyValue or displayValue is null.