TextBox.MaxLength TextBox.MaxLength TextBox.MaxLength TextBox.MaxLength Property

Definition

Gets or sets the value that specifies the maximum number of characters allowed for user input.

public : int MaxLength { get; set; }
int32_t MaxLength();

void MaxLength(int32_t maxlength);
public int MaxLength { get; set; }
Public ReadWrite Property MaxLength As int
<TextBox MaxLength="int"/>

Property Value

int int

The maximum number of characters allowed for user input. The default is 0 (no limit).

Remarks

A MaxLength value of 0 specifies that there is no limit on the number of characters allowed for user input.