MemoProperties.MaxLength Property

Gets or sets the maximum number of characters an end user can enter into the editor.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll


public int MaxLength { get; set; }

Property Value

Type Default Description


A positive integer specifying the maximum number of characters end users can enter. 0 to disable the length limit on the text.


End users cannot enter strings whose length exceeds that specified by the MaxLength property. Note that you can still assign values of any length via code. If the length of the displayed text exceeds the specified limit, end users are only able to delete characters while the number of characters is greater than the MaxLength‘s property value.


The MaxLength property synchronizes its value with the editor’s ASPxMemo.MaxLength property.

See Also