TTMSFNCDataGridConditionalFormatting.AddTextHighlight Method
Adds a
grtTextrule with the fill and font colour already applied.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridConditionalFormatting
Syntax
function AddTextHighlight(AColumn: Integer; AComparison: TTMSFNCDataGridFormatComparison; const AText: string; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index the rule applies to. |
AComparison |
The string comparison operator to use. |
AText |
The reference text compared against the cell text. |
AFillColor |
The background colour applied to a matching cell. |
ATextColor |
The text colour applied to a matching cell. |
Returns
The newly added rule.