TTMSFNCDataGridConditionalFormatting.AddValueRangeHighlight Method
Adds a
grtCellValuerule with agfcBetweencomparison across the two bounds, both inclusive, with the fill and font colour already applied.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridConditionalFormatting
Syntax
function AddValueRangeHighlight(AColumn: Integer; const AMinimum, AMaximum: string; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddValueRangeHighlight(int AColumn, const System::UnicodeString AMinimum, const System::UnicodeString AMaximum, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AFillColor, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor ATextColor = (System::Uitypes::TAlphaColor)(0x0));
Remarks
The order of the two bounds does not matter.
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index the rule applies to. |
AMinimum |
The first bound, inclusive, as text. |
AMaximum |
The second bound, inclusive, as text. |
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.