TX Text Control .NET for WPF

InstructionType Property

Property|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

Gets the type of action to execute. It specifies how the instruction value and else instruction value is applied to the corresponding form field.

Syntax

public Instruction.InstructionTypes InstructionType { get; }

Examples

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

CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
Instruction instruction = new(approvalField, Instruction.InstructionTypes.IsEnabled, true);

Console.WriteLine($"Instruction Type: {instruction.InstructionType}");
Console.WriteLine("Instruction is ready for use.");

Limitations

Read only.

Remarks

The value represents the constructor's instructionType parameter value.