Back to Devexpress

TextAreaBuilder.MaxLength(Int32) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-textareabuilder-dot-maxlength-x28-system-dot-int32-x29.md

latest1.3 KB
Original Source

TextAreaBuilder.MaxLength(Int32) Method

Specifies the maximum number of characters you can enter into the textbox. Mirrors the client-side maxLength option.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public TextAreaBuilder MaxLength(
    int value
)

Parameters

NameTypeDescription
valueInt32

The option value.

|

Returns

TypeDescription
TextAreaBuilder

A reference to this instance after the method is called.

|

Remarks

Use the following notation to set the option’s value:

cshtml
@(Html.DevExtreme().TextArea()
    .MaxLength(10)
)

See Also

TextAreaBuilder Class

TextAreaBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace