[]
Gets or sets if the conditional format rule is looking for unique or duplicate values.
Use this property to determine whether the IUniqueValues rule is configured to match duplicate values or unique values in the applied range.
DupeUnique DupeUnique { get; set; }
Property DupeUnique As DupeUnique
worksheet.Range["A1:A5"].Value = new object[,] {
{100}, {100}, {200}, {300}, {300}
};
IUniqueValues condition = worksheet.Range["A1:A5"].FormatConditions.AddUniqueValues();
condition.Interior.Color = Color.Yellow;
condition.DupeUnique = DupeUnique.Unique;
DupeUnique dupeUnique = condition.DupeUnique;