Filters to cells whose background or font color matches a target color.
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public class CellColorFilterCriterion : Documents.Spreadsheet.FilterCriterionFilters to cells whose background or font color matches a target color.
public CellColorFilterCriterion()The hex color string to match (e.g. #FFFF00).
public string Color { get; set; }
| Type | Description |
|---|---|
| string | The hex color string to match (e.g. #FFFF00). |
The column this filter applies to.
public int Column { get; set; }
| Type | Description |
|---|---|
| int | The column this filter applies to. |
When false (default), matches against the cell's BackgroundColor. When true, matches against Color (font color).
public bool FontColor { get; set; }
| Type | Description |
|---|---|
| bool | When false (default), matches against the cell's BackgroundColor. When true, matches against Color (font color). |
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 |