TTMSFNCFilterRule.AddAction Method
Adds an action that writes AMatchValue to ATargetPath when the filter matches; returns Self for chaining.
API unit family: TMS.TMSFNCFilterRulesManager
Declaring type: TTMSFNCFilterRule
Overloads
Overload 1
Adds an action that writes AMatchValue to ATargetPath when the filter matches; returns Self for chaining.
function AddAction(const ATargetPath: string; const AMatchValue: TTMSFNCValue): TTMSFNCFilterRule; overload;
Parameters
| Name | Description |
|---|---|
ATargetPath |
RTTI path on the item to write (for example Visible or Font.Color). |
AMatchValue |
Value written when the filter matches. |
Overload 2
Adds an action with match and no-match values; returns Self for chaining.
function AddAction(const ATargetPath: string; const AMatchValue: TTMSFNCValue; const ANoMatchValue: TTMSFNCValue): TTMSFNCFilterRule; overload;
Parameters
| Name | Description |
|---|---|
ATargetPath |
RTTI path on the item to write. |
AMatchValue |
Value written when the filter matches. |
ANoMatchValue |
Value written when the filter does not match. |
Overload 3
Adds an action covering match, no-match and inactive states; returns Self for chaining.
function AddAction(const ATargetPath: string; const AMatchValue: TTMSFNCValue; const ANoMatchValue: TTMSFNCValue; const AInactiveValue: TTMSFNCValue): TTMSFNCFilterRule; overload;
Parameters
| Name | Description |
|---|---|
ATargetPath |
RTTI path on the item to write. |
AMatchValue |
Value written when the filter matches. |
ANoMatchValue |
Value written when the filter does not match. |
AInactiveValue |
Value written when the rule is inactive. |