FormatCondition

FormatCondition

Overview

FormatCondition is a class in Aspose.Cells for NET.

FormatCondition.Remove removes this conditional format from its worksheet.

Properties

NameTypeAccessDescription
TypeFormatConditionTypeRead/WriteGets or sets the condition’s format type (e.g., cell value, expression)
OperatorOperatorTypeRead/WriteGets or sets the comparison operator used in the condition
Formula1stringRead/WriteGets or sets the first formula string for the condition
Formula2stringRead/WriteGets or sets the second formula string for the condition
FormulastringRead/WriteGets or sets a single formula for expression‑type conditions
TimePeriodstringRead/WriteGets or sets the time period identifier for time-based rules
DuplicateboolRead/WriteGets or sets whether the rule checks for duplicate values
TopboolRead/WriteGets or sets whether the rule selects the top values
PercentboolRead/WriteIndicates whether the rule uses a percentage threshold
RankintRead/WriteGets or sets the numeric rank used with top/bottom rules
AboveboolRead/WriteGets or sets whether the rule applies to values above average
StandardDeviationintRead/WriteGets or sets the number of standard deviations for the rule
ColorScaleCountintRead/WriteGets or sets how many colors are used in a color scale
MinColorColorRead/WriteGets or sets the minimum color in a color‑scale rule
MidColorColorRead/WriteGets or sets the middle color in a three‑color scale rule
MaxColorColorRead/WriteGets or sets the maximum color in a color scale
BarColorColorRead/WriteGets or sets the fill color of data bars in a bar rule
NegativeBarColorColorRead/WriteGets or sets the fill color for negative data bar values
ShowBorderboolRead/WriteGets or sets whether data bars display a border
DirectionstringRead/WriteGets or sets the direction of data bars (e.g., left‑to‑right)
BarLengthstringRead/WriteGets or sets the length type of data bars (e.g., “Automatic”)
IconSetTypestringRead/WriteGets or sets the icon set used for icon‑based rules
ReverseIconsboolRead/WriteGets or sets whether icons are displayed in reverse order
ShowIconOnlyboolRead/WriteIndicates whether only the icon is displayed without cell formatting
PriorityintRead/WriteGets or sets the rule’s evaluation order relative to other rules
StopIfTrueboolRead/WriteIndicates whether evaluation stops when this rule evaluates to true
StyleStyleRead/WriteGets or sets the style applied when the condition evaluates to true

Methods

SignatureDescription
Remove()Deletes this conditional formatting rule from its worksheet