Class FileSystemTreeBuilder | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
TreeView builder for creating file system based trees.
public class FileSystemTreeBuilder : ITreeBuilder<IFileSystemInfo>, IComparer<IFileSystemInfo>
Inheritance
FileSystemTreeBuilder
Implements
Inherited Members
Constructors
Creates a new instance of the FileSystemTreeBuilder class.
Properties
Gets or sets a flag indicating whether to show files as leaf elements in the tree. Defaults to true.
Gets or sets the order of directory children. Defaults to this.
Returns true if CanExpand(T) is implemented by this class
Methods
Returns true/false for whether a model has children. This method should be implemented whenGetChildren(T) is an expensive operation otherwise SupportsCanExpand should return false (in which case this method will not be called)
Compare(IFileSystemInfo, IFileSystemInfo)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Returns all children of a given forObject
which should be added to the tree as new branches underneath it