ITreeViewFilter.cs 326 B

123456789
  1. #nullable disable
  2. namespace Terminal.Gui.Views;
  3. /// <summary>Provides filtering for a <see cref="TreeView"/>.</summary>
  4. public interface ITreeViewFilter<T> where T : class
  5. {
  6. /// <summary>Return <see langword="true"/> if the <paramref name="model"/> should be included in the tree.</summary>
  7. bool IsMatch (T model);
  8. }