Skip to main content
Table of Contents

TTMSFNCDataGridConditionalFormatting.AddTextHighlight Method

Adds a grtText rule with the fill and font colour already applied.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
function AddTextHighlight(AColumn: Integer; AComparison: TTMSFNCDataGridFormatComparison; const AText: string; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddTextHighlight(int AColumn, TTMSFNCDataGridFormatComparison AComparison, const System::UnicodeString AText, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AFillColor, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor ATextColor = (System::Uitypes::TAlphaColor)(0x0));

Remarks

Equivalent to AddTextRule followed by TTMSFNCDataGridFormatRuleItem.Highlight.

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; it may contain the wildcards * and ?.
AFillColor The solid background colour applied to a matching cell; pass gcNull to leave the fill unchanged.
ATextColor The text colour applied to a matching cell; pass gcNull (the default) to leave the font colour unchanged.

Returns

The newly added rule, owned by the collection.