Skip to main content
Table of Contents

TTMSFNCDataGridFormatRuleItem.WithRange Method

Sets Value1 and Value2 from typed values for a gfcBetween or gfcNotBetween comparison. Both bounds are inclusive and their order does not matter.

API unit family: TMSFNCDataGridConditionalFormatting Declaring type: TTMSFNCDataGridFormatRuleItem

Syntax

FMX.TMSFNCDataGridConditionalFormatting.hppPascalC++
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.