Class ExcelConditionalFormatFormulaAttribute
- Namespace
- BigExcelCreator.ClassAttributes
- Assembly
- BigExcelCreator.dll
Adds a conditional formatting rule based on a formula
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class ExcelConditionalFormatFormulaAttribute : Attribute
- Inheritance
-
ExcelConditionalFormatFormulaAttribute
- Inherited Members
Constructors
ExcelConditionalFormatFormulaAttribute(int, string)
Adds a conditional formatting rule based on a formula
public ExcelConditionalFormatFormulaAttribute(int format, string formula)
Parameters
formatintThe format ID of the differential format in styleSheet to apply when the condition is met. See GetIndexDifferentialByName(string).
formulastringThe formula that determines the conditional formatting rule.
ExcelConditionalFormatFormulaAttribute(string, string)
Adds a conditional formatting rule based on a formula
public ExcelConditionalFormatFormulaAttribute(string styleName, string formula)
Parameters
styleNamestringThe differential style name to apply to the cell.
formulastringThe formula that determines the conditional formatting rule.
Properties
Format
The format ID of the differential format in styleSheet to apply when the condition is met. See GetIndexDifferentialByName(string).
public int Format { get; }
Property Value
Formula
The formula that determines the conditional formatting rule.
public string Formula { get; }
Property Value
StyleName
The differential style name to apply to the cell.
public string StyleName { get; }