Filters to the top or bottom N items (or N percent) of a column.
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public class TopFilterCriterion : Documents.Spreadsheet.FilterCriterionFilters to the top or bottom N items (or N percent) of a column.
public TopFilterCriterion()When true, keep the lowest values instead of the highest.
public bool Bottom { get; set; }
| Type | Description |
|---|---|
| bool | When true, keep the lowest values instead of the highest. |
The column this filter applies to.
public int Column { get; set; }
| Type | Description |
|---|---|
| int | The column this filter applies to. |
When Percent is false, the number of rows to keep. When true, a 0..100 percentage of the rows.
public int Count { get; set; }
| Type | Description |
|---|---|
| int | When Percent is false, the number of rows to keep. When true, a 0..100 percentage of the rows. |
Count is interpreted as a percentage instead of a row count.
public bool Percent { get; set; }
| Type | Description |
|---|---|
| bool | Count is interpreted as a percentage instead of a row count. |
public override void Accept(Documents.Spreadsheet.IFilterCriterionVisitor visitor)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.IFilterCriterionVisitor | visitor |
public override bool Matches(Documents.Spreadsheet.Worksheet sheet, int row)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet | |
| int | row |
| Type | Description |
|---|---|
| bool |
public override void OnApply(Documents.Spreadsheet.Worksheet sheet, Documents.Spreadsheet.RangeRef range)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Worksheet | sheet | |
| Documents.Spreadsheet.RangeRef | range |