TX Text Control .NET for WPF

Copy Method

Method|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Returns a copy of this ConditionalInstruction object.

Syntax

public ConditionalInstruction Copy();

Return Value

The return value is a copy of the current ConditionalInstruction object and its property values.

Examples

The following example builds a rule around an approval check box in a fillable form by using ConditionalInstruction.Copy.

CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
ConditionalInstruction conditionalInstruction = new();

var result = conditionalInstruction.Copy();
Console.WriteLine($"Copy result: {result}");