API Reference
ExcelRangeConditionalFormattingBuilder
Fluent conditional formatting builder for an ExcelRange.
Inheritance
- Object
- ExcelRangeConditionalFormattingBuilder
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property ExcelRange.ConditionalFormat
- Property ExcelRange.ConditionalFormatting
Methods
public ExcelRange AboveAverage(Boolean equalAverage = false, Nullable<UInt32> standardDeviation = null) #ExcelRangeApplies an above-average rule with an optional solid fill.
Parameters
- fillColor System.String = false
- equalAverage System.Boolean = null
AboveAverage(System.Boolean equalAverage, System.Nullable{System.UInt32} standardDeviation) #Applies an above-average rule.
Parameters
- equalAverage System.Boolean
- standardDeviation System.Nullable{System.UInt32}
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(Boolean equalAverage = false, Nullable<UInt32> standardDeviation = null) #ExcelRangeApplies a below-average rule with an optional solid fill.
Parameters
- fillColor System.String = false
- equalAverage System.Boolean = null
BelowAverage(System.Boolean equalAverage, System.Nullable{System.UInt32} standardDeviation) #Applies a below-average rule.
Parameters
- equalAverage System.Boolean
- standardDeviation System.Nullable{System.UInt32}
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(ConditionalFormattingOperatorValues operator, String formula1) #ExcelRangeApplies a cell-value comparison rule.
Parameters
- operator DocumentFormat.OpenXml.Spreadsheet.ConditionalFormattingOperatorValues
- formula1 System.String
public ExcelRange CellIs(ConditionalFormattingOperatorValues operator, String formula1, String formula2) #ExcelRangeApplies a cell-value comparison rule.
Parameters
- operator DocumentFormat.OpenXml.Spreadsheet.ConditionalFormattingOperatorValues
- formula1 System.String
- formula2 System.String
public ExcelRange CellIs(ConditionalFormattingOperatorValues operator, String formula1, String formula2 = null, String fillColor = null) #ExcelRangeApplies a cell-value comparison rule.
Parameters
- operator DocumentFormat.OpenXml.Spreadsheet.ConditionalFormattingOperatorValues
- 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
- arg1 OfficeIMO.Drawing.OfficeColor
- arg2 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(IconSetValues iconSet, Boolean showValue = true, Boolean reverseIconOrder = false, Double[] percentThresholds = null, Double[] numberThresholds = null) #ExcelRangeApplies an icon set.
Parameters
- iconSet DocumentFormat.OpenXml.Spreadsheet.IconSetValues
- 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(TimePeriodValues timePeriod) #ExcelRangeApplies a time-period rule.
Parameters
- timePeriod DocumentFormat.OpenXml.Spreadsheet.TimePeriodValues
public ExcelRange TimePeriod(TimePeriodValues timePeriod, String fillColor) #ExcelRangeApplies a time-period rule with a differential fill color.
Parameters
- timePeriod DocumentFormat.OpenXml.Spreadsheet.TimePeriodValues
- 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 override Boolean Equals(Object obj) #BooleanParameters
- obj Object