TTMSFNCDataGridFormatRuleItem.WithDateRange Method
Turns the rule into a
grtDaterule matching the explicit date range .., both inclusive.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridFormatRuleItem
Syntax
function WithDateRange(AFrom, ATo: TDateTime): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall WithDateRange(System::TDateTime AFrom, System::TDateTime ATo);
Remarks
Sets RuleType to grtDate, DateInterval to diCustomRange, and assigns DateFrom and DateTo. The bounds may be given in either order and their time portion is ignored; with both 0 the rule matches nothing.
Parameters
| Name | Description |
|---|---|
AFrom |
First date matched, inclusive. Pass 0 for an open lower bound. |
ATo |
Last date matched, inclusive. Pass 0 for an open upper bound. |
Returns
The rule, so calls can be chained.