Copy Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Returns a copy of this ConditionalInstruction object.
Syntax
public ConditionalInstruction Copy();Public Function Copy() As ConditionalInstructionReturn 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}");Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim conditionalInstruction As New ConditionalInstruction()
Dim result = conditionalInstruction.Copy()
Console.WriteLine($"Copy result: {result}")