Store for conditional formatting rules per ranges.
Object
Namespace: Radzen.Documents.Spreadsheet
Assembly: Radzen.Blazor.dll
public class ConditionalFormatStoreStore for conditional formatting rules per ranges.
public ConditionalFormatStore()Gets all ranges that have conditional formatting rules.
public IEnumerable<Documents.Spreadsheet.RangeRef> Ranges { get; }
| Type | Description |
|---|---|
| IEnumerable<Documents.Spreadsheet.RangeRef> | Gets all ranges that have conditional formatting rules. |
Adds conditional formatting rules for a specific range.
public void Add(Documents.Spreadsheet.RangeRef range, Documents.Spreadsheet.ConditionalFormatBase[] rules)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.RangeRef | range | |
| Documents.Spreadsheet.ConditionalFormatBase[] | rules |
Adds conditional formatting rules for a specific range.
public void Add(Documents.Spreadsheet.RangeRef range, Documents.Spreadsheet.ConditionalFormatBase rule)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.RangeRef | range | |
| Documents.Spreadsheet.ConditionalFormatBase | rule |
Calculates the merged conditional overlay format for a cell from all matching rules.
public Documents.Spreadsheet.Format Calculate(Documents.Spreadsheet.Cell cell)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.Cell | cell |
| Type | Description |
|---|---|
| Documents.Spreadsheet.Format |
Gets all rules for a specific range.
public IReadOnlyList<Documents.Spreadsheet.ConditionalFormatBase> GetRules(Documents.Spreadsheet.RangeRef range)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.RangeRef | range |
| Type | Description |
|---|---|
| IReadOnlyList<Documents.Spreadsheet.ConditionalFormatBase> |
Removes a conditional formatting rule from a specific range.
public bool Remove(Documents.Spreadsheet.RangeRef range, Documents.Spreadsheet.ConditionalFormatBase rule)
| Type | Name | Description |
|---|---|---|
| Documents.Spreadsheet.RangeRef | range | |
| Documents.Spreadsheet.ConditionalFormatBase | rule |
| Type | Description |
|---|---|
| bool |