Skip to main content
Table of Contents

TTMSFNCDataGridConditionalFormatting.AddDuplicateHighlight Method

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

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
function AddDuplicateHighlight(AColumn: Integer; AKind: TTMSFNCDataGridDuplicateKind; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddDuplicateHighlight(int AColumn, TTMSFNCDataGridDuplicateKind AKind, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AFillColor, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor ATextColor = (System::Uitypes::TAlphaColor)(0x0));

Remarks

Values are compared by exact, case-sensitive display text within the column's visible rows.

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AKind Whether duplicated or unique values are matched.
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.