TTMSFNCDataGridConditionalFormatting.AddDuplicateHighlight Method
Adds a
grtUniqueDuplicaterule with the fill and font colour already applied.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridConditionalFormatting
Syntax
function AddDuplicateHighlight(AColumn: Integer; AKind: TTMSFNCDataGridDuplicateKind; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index the rule applies to. |
AKind |
Whether duplicated or unique values are matched. |
AFillColor |
The background colour applied to a matching cell. |
ATextColor |
The text colour applied to a matching cell. |
Returns
The newly added rule.