# Instruction.InstructionTypes Enumeration

> Determines the type of action to execute. The enumeration contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > Instruction.InstructionTypes Enumeration
- **937 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/instructiontypes-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/instructiontypes-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/instructiontypes-enumeration/llms-full.txt

---

### Description

Determines the [type](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/instructiontype-property/llms-full.txt) of action to execute. The enumeration contains the following values:

### Syntax

```csharp
public enum Instruction.InstructionTypes
```

```vbnet
Public Enum Instruction.InstructionTypes
```

### Members

| Member | Value | Description |
|---|---|---|
| IsEnabled | 1 | The instruction sets the [FormField.Enabled](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/enabled-property/llms-full.txt) property to true or false. This enumeration value is used in combination with an [instruction value](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/instructionvalue-property/llms-full.txt) of type boolean that represents the new desired `FormField.Enabled` value. |
| IsValueValid | 2 | The instruction marks the form field value as valid or invalid. This enumeration value is used in combination with an instruction value of type boolean. To retrieve the result of an instruction with that instruction type, the [ConditionalInstructionCollection.IsValueValid](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstructioncollection/isvaluevalid-method/llms-full.txt) method is provided. |
| SetValue | 3 | The instruction sets a new value to a [FormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/llms-full.txt) type specific property. If the related [FormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/formfield-property/llms-full.txt) is an object of type [CheckFormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/llms-full.txt), the instruction type is used in combination with an instruction value of type boolean that represents the new desired [CheckFormField.Checked](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/checked-property/llms-full.txt) property value. At form fields of type [TextFormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textformfield/llms-full.txt) and [SelectionFormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selectionformfield/llms-full.txt), the [Text](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textfield/text-property/llms-full.txt) property is updated with a string value. The corresponding property of [date form fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/llms-full.txt) is the [DateFormField.Date](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/date-property/llms-full.txt) property. To update that property, the `Instruction.InstructionValue` property needs a value of type `System.DateTime`. |
| SetItems | 4 | The instruction replaces the [SelectionFormField.Items](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selectionformfield/items-property/llms-full.txt) array with the string array that is represented by `Instruction.InstructionValue` property. |

### Examples

The following example selects the Is Enabled value from the Instruction Types enumeration and uses it as a documented workflow choice.

```csharp
Instruction.InstructionTypes value = Instruction.InstructionTypes.IsEnabled;
Console.WriteLine($"Using Instruction Types: {value}");
```

```vbnet
Dim value As Instruction.InstructionTypes = Instruction.InstructionTypes.IsEnabled
Console.WriteLine($"Using Instruction Types: {value}")
```

---

## Nearby

- **Previous:** [Instruction.InstructionType Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/instructiontype-property/llms-full.txt)
- **Next:** [Instruction.InstructionValue Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/instruction/instructionvalue-property/llms-full.txt)
