Table of Contents

Interface ITreeBuilder<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Interface for supplying data to a TreeView<T> on demand as root level nodes are expanded by the user

public interface ITreeBuilder<T>

Type Parameters

T

Properties

SupportsCanExpand

Returns true if CanExpand(T) is implemented by this class

Methods

CanExpand(T)

Returns true/false for whether a model has children. This method should be implemented when GetChildren(T) is an expensive operation otherwise SupportsCanExpand should return false (in which case this method will not be called)

GetChildren(T)

Returns all children of a given forObject which should be added to the tree as new branches underneath it