Class ConditionalFormattingCollection
Represents the collection of conditional formattings on a worksheet.
Inheritance
System.Object
ConditionalFormattingCollection
Assembly: DRIT.Spreadsheet.dll
public class ConditionalFormattingCollection : IEnumerable<ConditionalFormatting>
Properties
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public void Add(ConditionalFormatting item)
Parameters
Declaration
public ConditionalFormatting Add(string range)
Parameters
Type |
Name |
Description |
System.String |
range |
|
Returns
Declaration
public void Add(string range, params ConditionalFormattingRule[] rules)
Parameters
Declaration
public AboveAverageFormattingRule AddAboveAverage(string range, bool aboveAverage)
Parameters
Type |
Name |
Description |
System.String |
range |
|
System.Boolean |
aboveAverage |
|
Returns
Declaration
public CellIsFormattingRule AddCellValue(string range, ConditionalFormattingOperator conditionalFormattingOperator, params double[] values)
Parameters
Returns
Declaration
public DataBarFormattingRule AddDataBar(string range, SpreadsheetColor color)
Parameters
Returns
Declaration
public DatesOccurringFormattingRule AddDatesOccurring(string range, TimePeriod timePeriod)
Parameters
Type |
Name |
Description |
System.String |
range |
|
TimePeriod |
timePeriod |
|
Returns
Declaration
public DuplicateValuesFormattingRule AddDuplicateValues(string range)
Parameters
Type |
Name |
Description |
System.String |
range |
|
Returns
Declaration
public ExpressionFormattingRule AddExpression(string range, string formula)
Parameters
Type |
Name |
Description |
System.String |
range |
|
System.String |
formula |
|
Returns
Declaration
public IconSetFormattingRule AddIconSet(string range, IconSetType type)
Parameters
Type |
Name |
Description |
System.String |
range |
|
IconSetType |
type |
|
Returns
AddSpecificText(String, SpecificTextFormattingRuleType, String)
Declaration
public SpecificTextFormattingRule AddSpecificText(string range, SpecificTextFormattingRuleType textOperator, string value)
Parameters
Returns
Declaration
public ThreeColorScaleFormattingRule AddThreeColorScale(string range, SpreadsheetColor minColor, SpreadsheetColor midColor, SpreadsheetColor maxColor)
Parameters
Returns
Declaration
public Top10FormattingRule AddTop10(string range, int rank)
Parameters
Type |
Name |
Description |
System.String |
range |
|
System.Int32 |
rank |
|
Returns
Declaration
public TwoColorScaleFormattingRule AddTwoColorScale(string range, SpreadsheetColor minColor, SpreadsheetColor maxColor)
Parameters
Returns
Declaration
public UniqueValuesFormattingRule AddUniqueValues(string range)
Parameters
Type |
Name |
Description |
System.String |
range |
|
Returns
Declaration
Declaration
public void ClearRules(Range range)
Parameters
Type |
Name |
Description |
Range |
range |
|
Declaration
public bool Contains(ConditionalFormatting item)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public ConditionalFormatting Get(string label)
Parameters
Type |
Name |
Description |
System.String |
label |
|
Returns
Declaration
public IEnumerator<ConditionalFormatting> GetEnumerator()
Returns
Declaration
public void Remove(ConditionalFormatting item)
Parameters