Class StandardConditionalFormattingRule
Base class for standard conditional formatting rules that support style formatting.
Inheritance
StandardConditionalFormattingRule
Inherited Members
Namespace: DRIT.Spreadsheet.ConditionalFormatting
Assembly: DRIT.Spreadsheet.dll
Syntax
public abstract class StandardConditionalFormattingRule : ConditionalFormattingRule
Constructors
StandardConditionalFormattingRule(ConditionalFormatting)
Initializes a new instance of the StandardConditionalFormattingRule class.
Declaration
protected StandardConditionalFormattingRule(ConditionalFormatting conditionalFormatting)
Parameters
| Type | Name | Description |
|---|---|---|
| ConditionalFormatting | conditionalFormatting | The parent conditional formatting. |
Properties
Borders
Specifies the border formatting for cells that match this rule.
Declaration
public Borders Borders { get; set; }
Property Value
| Type | Description |
|---|---|
| Borders |
Fill
Specifies the fill formatting for cells that match this rule.
Declaration
public CellFill Fill { get; set; }
Property Value
| Type | Description |
|---|---|
| CellFill |
Font
Specifies the font formatting for cells that match this rule.
Declaration
public Font Font { get; set; }
Property Value
| Type | Description |
|---|---|
| Font |
NumberFormat
Specifies the number format for cells that match this rule.
Declaration
public Format NumberFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| Format |
Methods
ApplyStyle(Cell, bool)
Applies or removes the differential style from a cell.
Declaration
protected bool ApplyStyle(Cell cell, bool applies)
Parameters
| Type | Name | Description |
|---|---|---|
| Cell | cell | The cell to apply the style to. |
| bool | applies | True to apply the style, false to remove it. |
Returns
| Type | Description |
|---|---|
| bool | True if the style was applied, false otherwise. |
OnDifferentialStyleSet()
Called when the differential style is set.
Declaration
protected override void OnDifferentialStyleSet()