Table of Contents

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

item TreeViewItem

The underlying TreeViewItem.

value T

The value to associate with this tree view item.

childItems IEnumerable<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

keyValue string

The unique key for the tree view item.

displayValue string

The text to display for the tree view item.

value T

The value to associate with this tree view item.

childItems IEnumerable<TreeViewItem<T>>

The child items of this tree view item.

Exceptions

ArgumentNullException

When keyValue or displayValue is null.