Table of Contents

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

format int

The 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

styleName string

The 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

int

StyleName

The differential style name to apply to the cell.

public string StyleName { get; }

Property Value

string