Skip to main content
Table of Contents

TTMSFNCDataGridConditionalFormatting.AddTextRule Method

Adds a grtText rule that compares a column's text against a reference string.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
function AddTextRule(AColumn: Integer; AComparison: TTMSFNCDataGridFormatComparison; const AText: string): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddTextRule(int AColumn, TTMSFNCDataGridFormatComparison AComparison, const System::UnicodeString AText);

Remarks

Matching is case-insensitive unless TTMSFNCDataGridFormatRuleItem.CaseSensitive is set. The rule has no appearance yet; chain TTMSFNCDataGridFormatRuleItem.Highlight or use AddTextHighlight.

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's display text. It may contain the wildcards * and ?.

Returns

The newly added rule, owned by the collection.