API Reference
ExcelRangeConditionalFormattingBuilder
Fluent conditional formatting builder for an ExcelRange.
Inheritance
- Object
- ExcelRangeConditionalFormattingBuilder
Usage
Explore 2 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Property ExcelRange.ConditionalFormat
- Property ExcelRange.ConditionalFormatting
Methods
public ExcelRange AboveAverage(String? fillColor, Boolean equalAverage = false) #ExcelRangeApplies an above-average rule with an optional solid fill.
Parameters
- fillColor System.String?
- equalAverage System.Boolean = false
public ExcelRange AboveAverage(Boolean equalAverage = false, UInt32? standardDeviation = null) #ExcelRangeApplies an above-average rule.
Parameters
- equalAverage System.Boolean = false
- standardDeviation System.UInt32? = null
public ExcelRange BeginsWith(String text) #ExcelRangeApplies a begins-with text rule.
Parameters
- text System.String
public ExcelRange BeginsWithText(String text) #ExcelRangeApplies a begins-with-text rule.
Parameters
- text System.String
public ExcelRange BeginsWithText(String text, String? fillColor) #ExcelRangeApplies a begins-with-text rule with an optional solid fill.
Parameters
- text System.String
- fillColor System.String?
public ExcelRange BelowAverage(String? fillColor, Boolean equalAverage = false) #ExcelRangeApplies a below-average rule with an optional solid fill.
Parameters
- fillColor System.String?
- equalAverage System.Boolean = false
public ExcelRange BelowAverage(Boolean equalAverage = false, UInt32? standardDeviation = null) #ExcelRangeApplies a below-average rule.
Parameters
- equalAverage System.Boolean = false
- standardDeviation System.UInt32? = null
public ExcelRange Between(String formula1, String formula2) #ExcelRangeApplies a between cell-value rule.
Parameters
- formula1 System.String
- formula2 System.String
public ExcelRange Between(String formula1, String formula2, String? fillColor) #ExcelRangeApplies a between cell-value rule.
Parameters
- formula1 System.String
- formula2 System.String
- fillColor System.String?
public ExcelRange Bottom(UInt32 rank, Boolean percent = false) #ExcelRangeApplies a bottom-values rule.
Parameters
- rank System.UInt32
- percent System.Boolean = false
public ExcelRange Bottom(UInt32 rank, String? fillColor, Boolean percent = false) #ExcelRangeApplies a bottom-values rule with an optional solid fill.
Parameters
- rank System.UInt32
- fillColor System.String?
- percent System.Boolean = false
public ExcelRange CellIs(ExcelConditionalFormattingOperator operator, String formula1) #ExcelRangeApplies a cell-value comparison rule.
Parameters
- operator OfficeIMO.Excel.ExcelConditionalFormattingOperator
- formula1 System.String
public ExcelRange CellIs(ExcelConditionalFormattingOperator operator, String formula1, String? formula2) #ExcelRangeApplies a cell-value comparison rule.
Parameters
- operator OfficeIMO.Excel.ExcelConditionalFormattingOperator
- formula1 System.String
- formula2 System.String?
public ExcelRange CellIs(ExcelConditionalFormattingOperator operator, String formula1, String? formula2 = null, String? fillColor = null) #ExcelRangeApplies a cell-value comparison rule.
Parameters
- operator OfficeIMO.Excel.ExcelConditionalFormattingOperator
- formula1 System.String
- formula2 System.String? = null
- fillColor System.String? = null
public ExcelRange Clear() #ExcelRangeRemoves conditional formatting rules that overlap the range.
public ExcelRange ColorScale(OfficeColor startColor, OfficeColor endColor) #ExcelRangeApplies a two-color scale.
Parameters
- startColor OfficeIMO.Drawing.OfficeColor
- endColor OfficeIMO.Drawing.OfficeColor
public ExcelRange ColorScale(String startColor, String endColor) #ExcelRangeApplies a two-color scale using hex colors.
Parameters
- startColor System.String
- endColor System.String
public ExcelRange ContainsText(String text) #ExcelRangeApplies a contains-text rule.
Parameters
- text System.String
public ExcelRange ContainsText(String text, String? fillColor) #ExcelRangeApplies a contains-text rule with an optional solid fill.
Parameters
- text System.String
- fillColor System.String?
public ExcelRange EndsWith(String text) #ExcelRangeApplies an ends-with text rule.
Parameters
- text System.String
public ExcelRange EndsWithText(String text) #ExcelRangeApplies an ends-with-text rule.
Parameters
- text System.String
public ExcelRange EndsWithText(String text, String? fillColor) #ExcelRangeApplies an ends-with-text rule with an optional solid fill.
Parameters
- text System.String
- fillColor System.String?
public ExcelRange Formula(String formula) #ExcelRangeApplies a formula-based rule.
Parameters
- formula System.String
public ExcelRange Formula(String formula, Boolean stopIfTrue) #ExcelRangeApplies a formula-based rule.
Parameters
- formula System.String
- stopIfTrue System.Boolean
public ExcelRange Formula(String formula, Boolean stopIfTrue = false, String? fillColor = null) #ExcelRangeApplies a formula-based rule.
Parameters
- formula System.String
- stopIfTrue System.Boolean = false
- fillColor System.String? = null
public ExcelRange GreaterThan(String formula) #ExcelRangeApplies a greater-than cell-value rule.
Parameters
- formula System.String
public ExcelRange GreaterThan(String formula, String? fillColor) #ExcelRangeApplies a greater-than cell-value rule.
Parameters
- formula System.String
- fillColor System.String?
public ExcelRange IconSet(ExcelIconSet iconSet, Boolean showValue = true, Boolean reverseIconOrder = false, Double[]? percentThresholds = null, Double[]? numberThresholds = null) #ExcelRangeApplies an icon set.
Parameters
- iconSet OfficeIMO.Excel.ExcelIconSet
- showValue System.Boolean = true
- reverseIconOrder System.Boolean = false
- percentThresholds System.Double[]? = null
- numberThresholds System.Double[]? = null
public ExcelRange LessThan(String formula) #ExcelRangeApplies a less-than cell-value rule.
Parameters
- formula System.String
public ExcelRange LessThan(String formula, String? fillColor) #ExcelRangeApplies a less-than cell-value rule.
Parameters
- formula System.String
- fillColor System.String?
public ExcelRange NotContainsText(String text) #ExcelRangeApplies a not-contains-text rule.
Parameters
- text System.String
public ExcelRange NotContainsText(String text, String? fillColor) #ExcelRangeApplies a not-contains-text rule with an optional solid fill.
Parameters
- text System.String
- fillColor System.String?
public ExcelRange TimePeriod(ExcelConditionalTimePeriod timePeriod) #ExcelRangeApplies a time-period rule.
Parameters
- timePeriod OfficeIMO.Excel.ExcelConditionalTimePeriod
public ExcelRange TimePeriod(ExcelConditionalTimePeriod timePeriod, String fillColor) #ExcelRangeApplies a time-period rule with a differential fill color.
Parameters
- timePeriod OfficeIMO.Excel.ExcelConditionalTimePeriod
- fillColor System.String
public ExcelRange Top(UInt32 rank, Boolean percent = false) #ExcelRangeApplies a top-values rule.
Parameters
- rank System.UInt32
- percent System.Boolean = false
public ExcelRange Top(UInt32 rank, String? fillColor, Boolean percent = false) #ExcelRangeApplies a top-values rule with an optional solid fill.
Parameters
- rank System.UInt32
- fillColor System.String?
- percent System.Boolean = false
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?