TTMSFNCDataGridFormatRuleItem.WithRange Method
Sets Value1 and Value2 from typed values for a
gfcBetweenorgfcNotBetweencomparison. Both bounds are inclusive and their order does not matter.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridFormatRuleItem
Syntax
function WithRange(const AFrom, ATo: TTMSFNCValue): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall WithRange(const TTMSFNCValue &AFrom, const TTMSFNCValue &ATo);
Remarks
Does not set Comparison; set it to gfcBetween or gfcNotBetween yourself, or use the matching TTMSFNCDataGridConditionalFormatting.AddCellValueRule overload.
Parameters
| Name | Description |
|---|---|
AFrom |
The first bound, inclusive. |
ATo |
The second bound, inclusive. |
Returns
The rule, so calls can be chained.