# Instruction.InstructionType Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > Instruction.InstructionType Property
- **650 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/instructiontype-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/instructiontype-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/instructiontype-property/llms-full.txt

---

### Description

Gets the [type](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/instructiontypes-enumeration/llms-full.txt) of action to execute. It specifies how the [instruction value](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/elseinstructionvalue-property/llms-full.txt) and [else instruction value](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/elseinstructionvalue-property/llms-full.txt) is applied to the [corresponding](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/formfield-property/llms-full.txt) form field.

### Syntax

```csharp
public Instruction.InstructionTypes InstructionType { get; }
```

```vbnet
Public ReadOnly Property InstructionType As Instruction.InstructionTypes
```

### Examples

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

```csharp
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.");
```

```vbnet
Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim instruction As New Instruction(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.

---

## Nearby

- **Previous:** [Instruction.FormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/formfield-property/llms-full.txt)
- **Next:** [Instruction.InstructionTypes Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/instruction/instructiontypes-enumeration/llms-full.txt)
