Class ExcelConditionalFormatDuplicatedValuesAttribute
- Namespace
- BigExcelCreator.ClassAttributes
- Assembly
- BigExcelCreator.dll
Adds a conditional formatting rule to highlight duplicated values
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class ExcelConditionalFormatDuplicatedValuesAttribute : Attribute
- Inheritance
-
ExcelConditionalFormatDuplicatedValuesAttribute
- Inherited Members
Constructors
ExcelConditionalFormatDuplicatedValuesAttribute(int)
Adds a conditional formatting rule to highlight duplicated values with the specified format.
public ExcelConditionalFormatDuplicatedValuesAttribute(int format)
Parameters
formatintThe index of the conditional format to apply when the condition is met.
ExcelConditionalFormatDuplicatedValuesAttribute(string)
Adds a conditional formatting rule to highlight duplicated values with the specified format.
public ExcelConditionalFormatDuplicatedValuesAttribute(string styleName)
Parameters
styleNamestringThe name of the style to apply when the conditional formatting rule is met. Cannot be null or empty.
Properties
Format
The format ID of the differential format in styleSheet to apply when the condition is met. See GetIndexDifferentialByName(string).
public int Format { get; }
Property Value
StyleName
The differential style name to apply to the cell.
public string StyleName { get; }