Table of Contents

Class TreeViewItem<T>

Namespace
Skyline.DataMiner.Utils.InteractiveAutomationScript
Assembly
Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll

Represents a TreeViewItem with an associated value of type T. This allows attaching custom metadata to tree view items.

public sealed class TreeViewItem<T>

Type Parameters

T

The type of the value associated with this tree view item.

Inheritance
TreeViewItem<T>
Extension Methods

Constructors

TreeViewItem(TreeViewItem, T, IEnumerable<TreeViewItem<T>>)

Initializes a new instance of the TreeViewItem<T> class.

TreeViewItem(string, string, T, IEnumerable<TreeViewItem<T>>)

Initializes a new instance of the TreeViewItem<T> class. Creates a TreeViewItem<T> with the specified parameters.

Properties

ChildItems

Gets the child items of this tree view item.

DisplayValue

Gets or sets the text to display for the tree view item.

IsChecked

Gets or sets a value indicating whether the tree view item is checked.

IsCollapsed

Gets or sets a value indicating whether the tree view item is collapsed.

Item

Gets the underlying TreeViewItem.

ItemType

Gets or sets the type of the tree view item.

KeyValue

Gets or sets the unique key for the tree view item.

SupportsLazyLoading

Gets or sets a value indicating whether the tree view item supports lazy loading.

Value

Gets the value associated with this tree view item.

Methods

Equals(TreeViewItem<T>)

Determines whether the specified TreeViewItem<T> is equal to the current TreeViewItem<T>.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

Operators

operator ==(TreeViewItem<T>, TreeViewItem<T>)

Determines whether two TreeViewItem<T> objects are equal.

operator !=(TreeViewItem<T>, TreeViewItem<T>)

Determines whether two TreeViewItem<T> objects are not equal.