Class TreeBuilder<T>
Inheritance
TreeBuilder<T>
Assembly: Terminal.Gui.dll
Syntax
public abstract class TreeBuilder<T> : ITreeBuilder<T>
Type Parameters
Constructors
|
Edit this page
View Source
TreeBuilder(bool)
Declaration
public TreeBuilder(bool supportsCanExpand)
Parameters
| Type |
Name |
Description |
| bool |
supportsCanExpand |
Pass true if you intend to
implement CanExpand(T) otherwise false |
Properties
|
Edit this page
View Source
SupportsCanExpand
Declaration
public bool SupportsCanExpand { get; protected set; }
Property Value
Methods
|
Edit this page
View Source
CanExpand(T)
Override this method to return a rapid answer as to whether
GetChildren(T)
returns results. If you are implementing this method ensure you passed true in base
constructor or set
SupportsCanExpand
Declaration
public virtual bool CanExpand(T toExpand)
Parameters
| Type |
Name |
Description |
| T |
toExpand |
|
Returns
|
Edit this page
View Source
GetChildren(T)
Returns all children of a given forObject which should be added to the
tree as new branches underneath it
Declaration
public abstract IEnumerable<T> GetChildren(T forObject)
Parameters
| Type |
Name |
Description |
| T |
forObject |
|
Returns
Implements