Skip to main content
Table of Contents

TTMSFNCDataGridConditionalFormatting.AddDateRangeHighlight Method

Adds a grtDate rule that highlights values falling in the explicit date range .., both inclusive.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridConditionalFormatting

Syntax

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

Remarks

Configured through TTMSFNCDataGridFormatRuleItem.WithDateRange; with both bounds 0 the rule matches nothing.

Parameters

Name Description
AColumn Zero-based column index the rule applies to.
AFrom First date matched, inclusive. Pass 0 for an open lower bound.
ATo Last date matched, inclusive. Pass 0 for an open upper bound.
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.