Represents a base class for filter criteria used in filtering rows of a spreadsheet.
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public abstract class FilterCriterionRepresents a base class for filter criteria used in filtering rows of a spreadsheet.
protected FilterCriterion()Accepts a visitor that can perform operations on this filter criterion.
public abstract void Accept(Documents.Spreadsheet.IFilterCriterionVisitor visitor)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.IFilterCriterionVisitor | visitor |
Determines whether the specified row in the given sheet matches the filter criterion.
public abstract bool Matches(Documents.Spreadsheet.Worksheet sheet, int row)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet | |
| int | row |
| Type | Description |
|---|---|
| bool |
Called once before iteration begins, with the range the filter is being applied to. Default is no-op. Distribution-aware criteria (top/bottom, above-average) override this to compute their threshold.
public virtual void OnApply(Documents.Spreadsheet.Worksheet sheet, Documents.Spreadsheet.RangeRef range)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet | |
| Documents.Spreadsheet.RangeRef | range |