[]
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.
When setting the priority, the value must be a positive integer between
1 and the total number of conditional formatting rules on the
worksheet. The priority must be a unique value for all rules on the
worksheet, so changing the priority for the specified conditional formatting
rule may cause the priority value of the other rules on the worksheet to be
shifted.
int Priority { get; set; }
Property Priority As Integer
worksheet.Range["A1:A5"].Value = new object[,] {{10}, {20}, {30}, {40}, {50}};
IAboveAverage format = worksheet.Range["A1:A5"].FormatConditions.AddAboveAverage();
format.Interior.Color = Color.Yellow;
IAboveAverage condition = (IAboveAverage)worksheet.Range["B1:B5"].FormatConditions.AddAboveAverage();
condition.Interior.Color = Color.LightBlue;
format.Priority = 2;
int priority = format.Priority;