[]
Specifies whether a unique values conditional formatting rule evaluates unique values or duplicate values.
This enumeration is used by IUniqueValues to control whether the rule highlights values that appear only once in the specified range or values that are repeated.
public enum DupeUnique
Public Enum DupeUnique
worksheet.Range["A1:A5"].Value = new object[,] {
{1}, {2}, {1}, {3}, {4}
};
IUniqueValues condition = worksheet.Range["A1:A5"].FormatConditions.AddUniqueValues();
condition.Interior.Color = Color.Yellow;
condition.DupeUnique = DupeUnique.Unique;
| Name | Description |
|---|---|
| Duplicate | Displays duplicate values. |
| Unique | Displays unique values. |