Interface IColumnFilterHandler
Interface for handling column filtering in a TableView.
public interface IColumnFilterHandler
Properties
SelectedValues
Gets or sets the selected values for the filter per column.
IDictionary<TableViewColumn, ICollection<object?>> SelectedValues { get; }
Property Value
- IDictionary<TableViewColumn, ICollection<object>>
Methods
ApplyFilter(TableViewColumn)
Applies the filter to the specified column.
void ApplyFilter(TableViewColumn column)
Parameters
columnTableViewColumnThe column to which the filter is applied.
ClearFilter(TableViewColumn?)
Clears the filter from the specified column.
void ClearFilter(TableViewColumn? column)
Parameters
columnTableViewColumnThe column from which the filter is cleared.
Filter(TableViewColumn, object?)
Determines whether the specified item passes the filter for the specified column.
bool Filter(TableViewColumn column, object? item)
Parameters
columnTableViewColumnThe column for which the filter is applied.
itemobjectThe item to check.
Returns
- bool
True if the item passes the filter; otherwise, false.
GetFilterItems(TableViewColumn, string?)
Get the filter items for the specified column.
IList<TableViewFilterItem> GetFilterItems(TableViewColumn column, string? searchText)
Parameters
columnTableViewColumnThe column for which to prepare filter items.
searchTextstringThe search text to filter the items.
Returns
- IList<TableViewFilterItem>