TTMSFNCDataGridFormatRuleItem.Comparison Property
The comparison operator used by
grtCellValueandgrtTextrules. Default isgfcEqual.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridFormatRuleItem
Type: TTMSFNCDataGridFormatComparison
Syntax
property Comparison: TTMSFNCDataGridFormatComparison;
Default: gfcEqual
Remarks
Each rule type accepts only part of the enum and evaluates to False for the rest: grtCellValue takes the magnitude operators (gfcEqual, gfcNotEqual, gfcGreater, gfcGreaterEqual, gfcLess, gfcLessEqual, gfcBetween, gfcNotBetween) and grtText takes the string operators (gfcEqual, gfcNotEqual, gfcContains, gfcNotContains, gfcBeginsWith, gfcEndsWith). A grtDate rule ignores this property entirely and matches on DateInterval.