Skip to main content

MaxLength Property

Gets or sets the maximum number of characters that the TextBox can accept. This constraint only applies for manually entered (user-inputted) text.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public int MaxLength { get; set; }

Property Value

Int32

See Also

Reference

TextBox Class
Avalonia.Controls Namespace