Table of Contents

Class TreeViewTextFilter<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ITreeViewFilter<T> implementation which searches the AspectGetter of the model for the given Text.

public class TreeViewTextFilter<T> : ITreeViewFilter<T> where T : class

Type Parameters

T
Inheritance
TreeViewTextFilter<T>
Implements
Inherited Members

Constructors

TreeViewTextFilter(TreeView<T>)

Creates a new instance of the filter for use with forTree. Set Text to begin filtering.

Properties

Comparer

The case sensitivity of the search match. Defaults to OrdinalIgnoreCase.

Text

The text that will be searched for in the TreeView<T>

Methods

IsMatch(T)

Returns T if there is no Text or the text matches the AspectGetter of the model.