TTMSFNCDataGridFormatRuleItem.WithValue Method
Sets Value1 from a typed value, formatted so the comparison reads it back with the same type.
API unit family: TMSFNCDataGridConditionalFormatting
Declaring type: TTMSFNCDataGridFormatRuleItem
Syntax
function WithValue(const AValue: TTMSFNCValue): TTMSFNCDataGridFormatRuleItem;
TTMSFNCDataGridFormatRuleItem* __fastcall WithValue(const TTMSFNCValue &AValue);
Remarks
Prefer this over assigning a string to Value1 for dates and floating-point numbers, where a hand-written string could be parsed differently. It does not change RuleType or Comparison.
Parameters
| Name | Description |
|---|---|
AValue |
The reference value to compare against. |
Returns
The rule, so calls can be chained.