Table of Contents

Class FileSystemTreeBuilder

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

TreeView builder for creating file system based trees.

public class FileSystemTreeBuilder : ITreeBuilder<IFileSystemInfo>, IComparer<IFileSystemInfo>
Inheritance
FileSystemTreeBuilder
Implements
ITreeBuilder<IFileSystemInfo>
IComparer<IFileSystemInfo>
Inherited Members

Constructors

FileSystemTreeBuilder()

Creates a new instance of the FileSystemTreeBuilder class.

Properties

IncludeFiles

Gets or sets a flag indicating whether to show files as leaf elements in the tree. Defaults to true.

Sorter

Gets or sets the order of directory children. Defaults to this.

SupportsCanExpand

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

Methods

CanExpand(IFileSystemInfo)

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)

Compare(IFileSystemInfo, IFileSystemInfo)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

GetChildren(IFileSystemInfo)

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