TTMSFNCDataGridConditionalFormatting.AddExpressionHighlight Method
Adds a
grtExpressionrule with the fill and font colour already applied.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridConditionalFormatting
Syntax
function AddExpressionHighlight(const AExpression: string; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddExpressionHighlight(const System::UnicodeString AExpression, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AFillColor, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor ATextColor = (System::Uitypes::TAlphaColor)(0x0));
Remarks
Equivalent to AddExpressionRule followed by TTMSFNCDataGridFormatRuleItem.Highlight; the rule is scoped to the whole grid, so a matching row is highlighted in every column.
Parameters
| Name | Description |
|---|---|
AExpression |
The boolean expression evaluated per row. |
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.