TX Text Control .NET for Windows Forms

InstructionValue Property

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

Gets the value that is set by the specified action when the defined requirements of the ConditionalInstruction.Conditions array are fulfilled.

Syntax

public object InstructionValue { get; }

Examples

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

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

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

Limitations

Read only.

Remarks

The value represents the constructor's instructionValue parameter value.