Table of Contents

TTMSFNCDataGridFormatRuleItem.Priority Property

The precedence of this rule relative to the others; a lower value wins. Default is 0.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridFormatRuleItem Type: Integer

Syntax

property Priority: Integer;

Default: 0

Remarks

Rules are evaluated from the lowest Priority upwards (ties keep declaration order), and the first matching rule to set a given appearance aspect — fill, font colour, font style, border, alignment, … — owns that aspect for the cell. A lower-priority rule can still contribute the aspects no higher-priority rule set, so a red-background rule and a bold-font rule combine, while two competing background rules resolve in favour of the one with the lower Priority. Use StopIfTrue to stop the pass entirely rather than merely to win a conflict.