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

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

Declaration
public CellColorFilterCriterion()

Properties

Colorlink

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

The column this filter applies to.

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

FontColorlink

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

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