TX Text Control .NET for Windows Forms

InputValidationMode Enumeration

Enumeration
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.

Description

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

Syntax

public enum RibbonTextBox.InputValidationMode

Members

MemberValueDescription
All0All characters are valid to be inserted into the text box.
LettersOrDigits1Only letters or digits are valid text box characters.
OnlyLetters2Only letters or digits are valid text box characters.
OnlyDigits3Only digits are valid text box characters.
OnlyIntegers4Only 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}");