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

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

Declaration
public TopFilterCriterion()

Properties

Bottomlink

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

The column this filter applies to.

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

Countlink

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

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

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

Matcheslink

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

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 🗙