Table of Contents

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

format int

The format ID of the differential format in styleSheet to apply when the condition is met. See GetIndexDifferentialByName(string).

formula string

The 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

styleName string

The differential style name to apply to the cell.

formula string

The 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

int

Formula

The formula that determines the conditional formatting rule.

public string Formula { get; }

Property Value

string

StyleName

The differential style name to apply to the cell.

public string StyleName { get; }

Property Value

string