[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IUniqueValues.Type

Type Property

Type

Gets the type of this conditional format.

Use this property to identify the conditional formatting rule type represented by this IUniqueValues instance. For a unique-values or duplicate-values rule, the returned value is UniqueValues.

Declaration
FormatConditionType Type { get; }
ReadOnly Property Type As FormatConditionType
Examples
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;
FormatConditionType type = condition.Type;