PromptPlus

PromptPlus

PromptPlus

PromptPlusLibrary

ITreeMultiSelectNode<T> Interface

Represents a node of the tree exposed by ITreeMultiSelectControl<T> while it is being constructed. Extends ITreeNode<T> so that chaining off a node returned by AddLast(T, bool, bool)/AddFirst(T, bool, bool) keeps access to the TreeMultiSelect-specific check parameter, the same way the base disable parameter already works on ITreeNode<T>.

public interface ITreeMultiSelectNode<T> : PromptPlusLibrary.ITreeNode<T>

Type parameters

T

The user item type held by the node.

Implements PromptPlusLibrary.ITreeNode<T>

Methods

ITreeMultiSelectNode<T>.AddFirst(T, bool, bool) Method

Inserts a child at the beginning of this node’s children collection.

PromptPlusLibrary.ITreeMultiSelectNode<T> AddFirst(T value, bool disable=false, bool check=false);

Parameters

value T

The value of the new child. Cannot be null.

disable System.Boolean

When true, the new child cannot be checked. Default is false.

check System.Boolean

Same semantics as in AddLast(T, bool, bool).

Returns

PromptPlusLibrary.ITreeMultiSelectNode<T>
The newly created child node.

ITreeMultiSelectNode<T>.AddLast(T, bool, bool) Method

Appends a child at the end of this node’s children collection.

PromptPlusLibrary.ITreeMultiSelectNode<T> AddLast(T value, bool disable=false, bool check=false);

Parameters

value T

The value of the new child. Cannot be null.

disable System.Boolean

When true, the new child cannot be checked. Default is false.

check System.Boolean

When true, the new child starts pre-checked. Additive with Default(IEnumerable<T>, bool) and history — whichever mechanism marks a node checked, it stays checked, neither one clears the other. Subject to cascade the same way an interactive check would be (a checked container cascades to its descendants when CascadeCheck is on). Unlike Default, does not auto-expand the tree to reveal the node.

Returns

PromptPlusLibrary.ITreeMultiSelectNode<T>
The newly created child node.