CellColorFilterCriterion Class

Filters to cells whose background or font color matches a target color.

Inheritance

Object

Documents.Spreadsheet.FilterCriterion

Documents.Spreadsheet.CellColorFilterCriterion

Namespace: Radzen.Documents.Spreadsheet

Assembly: Radzen.Blazor.dll

Syntax

public class CellColorFilterCriterion : Documents.Spreadsheet.FilterCriterion

Constructors

CellColorFilterCriterionLink to this section

Filters to cells whose background or font color matches a target color.

Declaration
public CellColorFilterCriterion()

Properties

ColorLink to this section

The hex color string to match (e.g. #FFFF00).

Declaration
public string Color { get; set; }
Property Value
Type Description
stringThe hex color string to match (e.g. #FFFF00).

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.

FontColorLink to this section

When false (default), matches against the cell's BackgroundColor. When true, matches against Color (font color).

Declaration
public bool FontColor { get; set; }
Property Value
Type Description
boolWhen false (default), matches against the cell's BackgroundColor. When true, matches against Color (font color).

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
An error has occurred. This app may no longer respond until reloaded. Reload 🗙