TX Text Control .NET for Windows Forms

ConditionalInstruction Constructor

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

Description

Initializes a new instance of the ConditionalInstruction class.

Syntax

ConditionalInstruction()

Initializes a new instance of the ConditionalInstruction class without any of the required values.

public ConditionalInstruction();

ConditionalInstruction(string, Condition[], Instruction[])

Initializes a new instance of the ConditionalInstruction class with all values that are necessary to provide a valid conditional instruction.

public ConditionalInstruction(string name, Condition[] conditions, Instruction[] instructions);
ParameterDescription
name

Specifies the name of the conditional instruction. If the value is null or an empty string, a System.ArgumentException is thrown.

conditions

Specifies the conditions of the conditional instruction. If the value is null, an empty array of conditions or at least one of the array elements is null, a System.ArgumentException is thrown.

instructions

Specifies the instructions of the conditional instruction. If the value is null, an empty array of instructions, at least one of the array elements is null or the array contains an Instruction element, where its InstructionType property value is already set by another Instruction array element for the same FormField, a System.ArgumentException is thrown.

Examples

The following example creates a Conditional Instruction instance and configures its are else instructions handled setting for a document workflow.

ConditionalInstruction conditionalInstruction = new();
conditionalInstruction.AreElseInstructionsHandled = true;