Skip to main content

TreeNode<T> class

Namespace: Arlecchino.Widgets.Lists · Assembly: Arlecchino

One node of a tree. Children are settable, so a branch can be filled in when it is first opened rather than up front.

public sealed class TreeNode<T>

Constructors

MemberSummary
TreeNode()

Properties

MemberSummary
ChildrenWhat sits under it.
HasChildrenWhether the node has children right now. A branch that has not been filled in yet reads as a leaf, so fill it in before it is first drawn.
IsExpandedWhether the children are showing.
ValueWhat this node stands for.

Constructors in detail

TreeNode()

Obsolete

Constructors of types with required members are not supported in this version of your compiler.

public TreeNode();

Properties in detail

Children

public IReadOnlyList<TreeNode<T>> Children { get; set; }

What sits under it.

Type IReadOnlyList<T><TreeNode<T>>

HasChildren

public bool HasChildren { get; }

Whether the node has children right now. A branch that has not been filled in yet reads as a leaf, so fill it in before it is first drawn.

Type bool

IsExpanded

public bool IsExpanded { get; set; }

Whether the children are showing.

Type bool

Value

public T Value { get; init; }

What this node stands for.

Type T