TopFilterCriterion Class

Filters to the top or bottom N items (or N percent) of a column.

Inheritance

Object

Documents.Spreadsheet.FilterCriterion

Documents.Spreadsheet.TopFilterCriterion

Namespace: Radzen.Documents.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class TopFilterCriterion : Documents.Spreadsheet.FilterCriterion

Constructors

TopFilterCriterionLink to this section

Filters to the top or bottom N items (or N percent) of a column.

Declaration
public TopFilterCriterion()

Properties

BottomLink to this section

When true, keep the lowest values instead of the highest.

Declaration
public bool Bottom { get; set; }
Property Value
Type Description
boolWhen true, keep the lowest values instead of the highest.

ColumnLink to this section

The column this filter applies to.

Declaration
public int Column { get; set; }
Property Value
Type Description
intThe column this filter applies to.

CountLink to this section

When Percent is false, the number of rows to keep. When true, a 0..100 percentage of the rows.

Declaration
public int Count { get; set; }
Property Value
Type Description
intWhen Percent is false, the number of rows to keep. When true, a 0..100 percentage of the rows.

PercentLink to this section

Count is interpreted as a percentage instead of a row count.

Declaration
public bool Percent { get; set; }
Property Value
Type Description
boolCount is interpreted as a percentage instead of a row count.

Methods

AcceptLink to this section

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

MatchesLink to this section

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

OnApplyLink to this section

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