[]
Gets or sets the priority value of the conditional formatting rule.
The priority determines the order of evaluation when multiple conditional formatting rules exist in a worksheet.
int Priority { get; set; }
Property Priority As Integer
IUniqueValues firstRule = worksheet.Range["A1:A5"].FormatConditions.AddUniqueValues();
firstRule.Interior.Color = Color.Yellow;
IUniqueValues secondRule = worksheet.Range["B1:B5"].FormatConditions.AddUniqueValues();
secondRule.Interior.Color = Color.LightBlue;
secondRule.Priority = 1;
int priority = secondRule.Priority;