[]
Sets the evaluation order for this conditional formatting rule so it is evaluated after all other rules on the worksheet.
void SetLastPriority()
Sub SetLastPriority()
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;
secondRule.SetLastPriority();