TTMSFNCDataGridConditionalFormatting.AddDateHighlight Method
Adds a
grtDaterule bucketed by a relative date interval, with the fill and font colour already applied.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridConditionalFormatting
Syntax
function AddDateHighlight(AColumn: Integer; AInterval: TTMSFNCDataGridDateInterval; AFillColor: TTMSFNCGraphicsColor; ATextColor: TTMSFNCGraphicsColor = gcNull): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall AddDateHighlight(int AColumn, TTMSFNCDataGridDateInterval AInterval, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AFillColor, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor ATextColor = (System::Uitypes::TAlphaColor)(0x0));
Remarks
The bucket is resolved against the current date at paint time, so the highlight moves as days pass. For an explicit range use AddDateRangeHighlight.
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index the rule applies to. |
AInterval |
The relative date bucket the value must fall in. |
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.