Table of Contents

Class TreeBox<TValue>

Namespace
RichHudFramework.UI
Assembly
RichHudClient.dll

Tree box supporting custom entry types of arbitrary height, provided they have a label.

Alias of TreeBox<TContainer, TElement> with LabelElementBase as the element and SelectionBoxEntryTuple<TElement, TValue> as the container.

public class TreeBox<TValue> : TreeBox<SelectionBoxEntryTuple<LabelElementBase, TValue>, LabelElementBase>, IReadOnlyHudElement, IReadOnlyHudNode, IReadOnlyHudParent, IMinLabelElement, IEntryBox<SelectionBoxEntryTuple<LabelElementBase, TValue>, LabelElementBase>, IEnumerable<SelectionBoxEntryTuple<LabelElementBase, TValue>>, IEnumerable, IValueControl<SelectionBoxEntryTuple<LabelElementBase, TValue>>, IValueControl, IClickableElement, IFocusableElement

Type Parameters

TValue

Value type associated with each entry.

Inheritance
TreeBox<TValue>
Implements
Inherited Members

Properties

ListContainer

Enables collection-initializer syntax (e.g., new MyTreeBox { ListContainer = { entry1, entry2 } })

public TreeBox<TValue> ListContainer { get; }

Property Value

TreeBox<TValue>

Methods

Add(LabelElementBase, TValue, bool)

Adds an entry container with the given element and key value.

public void Add(LabelElementBase keyElement, TValue value, bool allowHighlighting = true)

Parameters

keyElement LabelElementBase
value TValue
allowHighlighting bool