FilterCriterion Class

Represents a base class for filter criteria used in filtering rows of a spreadsheet.

Namespace: Radzen.Documents.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public abstract class FilterCriterion

Constructors

FilterCriterionlink

Represents a base class for filter criteria used in filtering rows of a spreadsheet.

Declaration
protected FilterCriterion()

Methods

Acceptlink

Accepts a visitor that can perform operations on this filter criterion.

Declaration
public abstract void Accept(Documents.Spreadsheet.IFilterCriterionVisitor visitor)
Parameters
Type Name Description
Documents.Spreadsheet.IFilterCriterionVisitor visitor

Matcheslink

Determines whether the specified row in the given sheet matches the filter criterion.

Declaration
public abstract bool Matches(Documents.Spreadsheet.Worksheet sheet, int row)
Parameters
Type Name Description
Documents.Spreadsheet.Worksheet sheet
int row
Returns
Type Description
bool

OnApplylink

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.

Declaration
public virtual void OnApply(Documents.Spreadsheet.Worksheet sheet, Documents.Spreadsheet.RangeRef range)
Parameters
An error has occurred. This app may no longer respond until reloaded. Reload 🗙