# RibbonTextBox.InputValidationMode Enumeration

> Determines the validation mode that is used to validate the inserted text in the RibbonTextBox:

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.Windows.Forms.Ribbon`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms.Ribbon > RibbonTextBox.InputValidationMode Enumeration
- **682 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox-inputvalidationmode/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox-inputvalidationmode/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox-inputvalidationmode/enumeration/llms-full.txt

---

### Description

Determines the [validation mode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/validationmode-property/llms-full.txt) that is used to validate the inserted [text](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/text-property/llms-full.txt) in the [RibbonTextBox](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/llms-full.txt):

### Syntax

```csharp
public enum RibbonTextBox.InputValidationMode
```

```vbnet
Public Enum RibbonTextBox.InputValidationMode
```

### Members

| Member | Value | Description |
|---|---|---|
| All | 0 | All characters are valid to be inserted into the text box. |
| LettersOrDigits | 1 | Only letters or digits are valid text box characters. |
| OnlyLetters | 2 | Only letters or digits are valid text box characters. |
| OnlyDigits | 3 | Only digits are valid text box characters. |
| OnlyIntegers | 4 | Only integers are valid text box characters. |

### Examples

The following example selects the All value from the Input Validation Mode enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode value = TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode.All;
Console.WriteLine($"Using Input Validation Mode: {value}");
```

```vbnet
Dim value As TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode = TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode.All
Console.WriteLine($"Using Input Validation Mode: {value}")
```

---

## Nearby

- **Previous:** [RibbonTextBox.DownButtonClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/downbuttonclicked-event/llms-full.txt)
- **Next:** [RibbonTextBox.IsScalable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms-ribbon/ribbontextbox/isscalable-property/llms-full.txt)
