.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

ConditionalFormatting.Priority Property

Specifies the priority of the conditional formatting rule.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll


int Priority { get; set; }

Property Value

Type Description

A positive integer that is the precedence of the conditional formatting rule.


The Priority property determines the order of evaluation when multiple conditional formatting rules exist in a worksheet. All conditional formatting rules have unique priorities. A rule with a lower numeric value has greater precedence than a rule with a higher numeric value. Thus, the rule with the Priority property set to 1 has the highest priority. By default, the new rule is always added to the beginning of the conditional formatting rule collection and therefore has the highest precedence.

See Also