Class ExcelConditionalFormattingRule¶
Namespace: OfficeOpenXml.ConditionalFormatting
Assembly: EPPlus.dll
Abstract base class for all ConditionalFormattingRules
Inheritance¶
object ← ExcelConditionalFormattingRule
Implements¶
IExcelConditionalFormattingRule
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
ExcelConditionalFormattingRule(ExcelConditionalFormattingRule, ExcelWorksheet)¶
Copy constructor
protected ExcelConditionalFormattingRule(ExcelConditionalFormattingRule original, ExcelWorksheet newWorksheet = null)
Parameters¶
original ExcelConditionalFormattingRule
newWorksheet ExcelWorksheet
In case cloning from another worksheet
Properties¶
AboveAverage¶
Above average In Excel: Default:True, use=optional
Property Value¶
bool?
Address¶
The range over which these conditional formatting rules apply.
Property Value¶
As¶
Provides access to type conversion for all conditional formatting rules.
Property Value¶
ExcelConditionalFormattingAsType
Bottom¶
Bottom attribute
Property Value¶
bool?
EqualAverage¶
EqualAverage
Property Value¶
bool?
Formula¶
Formula
Property Value¶
Formula2¶
Formula2 Note, no longer Requires Formula to be set before it. But will still throw error if both formulas not filled at save time.
Property Value¶
Operator¶
Operator
Property Value¶
eExcelConditionalFormattingOperatorType?
Percent¶
Percent attribute
Property Value¶
bool?
PivotTable¶
Indicates that the conditional formatting is associated with a PivotTable
Property Value¶
Priority¶
The priority of the rule. 1 is highest priority. 2 second highest etc.
Property Value¶
Rank¶
Rank (zero is not allowed and will be converted to 1)
Property Value¶
StdDev¶
0 is not allowed and will be converted to 1
Property Value¶
StopIfTrue¶
If this property is true, no rules with lower priority should be applied over this rule.
Property Value¶
Style¶
The style
Property Value¶
ExcelDxfStyleConditionalFormatting
TimePeriod¶
TimePeriod
Property Value¶
eExcelConditionalFormattingTimePeriodType?
Type¶
The type of conditional formatting rule.