Xceed Toolkit for Maui v2.0 Documentation
MaxLength Property


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > TextBox Class : MaxLength Property
Gets or sets the maximum number of characters allowed in the TextBox.
Syntax
'Declaration
 
Public Property MaxLength As Integer
'Usage
 
Dim instance As TextBox
Dim value As Integer
 
instance.MaxLength = value
 
value = instance.MaxLength
public int MaxLength {get; set;}
Remarks

This value must be greater than or equal to 0.

The default value is int.MaxValue.

Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TextBox Class
TextBox Members