InputValidationMode Enumeration
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
Description
Determines the validation mode that is used to validate the inserted text in the RibbonTextBox:
Syntax
public enum RibbonTextBox.InputValidationModePublic Enum RibbonTextBox.InputValidationModeMembers
| 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.
TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode value = TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode.All;
Console.WriteLine($"Using Input Validation Mode: {value}");Dim value As TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode = TXTextControl.Windows.Forms.Ribbon.RibbonTextBox.InputValidationMode.All
Console.WriteLine($"Using Input Validation Mode: {value}")