Share via


HtmlHelper.TextArea(String, String, Int32, Int32, Object) Method

Definition

Returns a <textarea> element for the specified expression. Adds content to the element body based on the first non-null value found in: the ModelState entry with full name, the value parameter, the ViewData entry with full name, or the expression evaluated against Model. See Name(String) for more information about a "full name".

public:
 virtual Microsoft::AspNetCore::Html::IHtmlContent ^ TextArea(System::String ^ expression, System::String ^ value, int rows, int columns, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Html.IHtmlContent TextArea (string expression, string value, int rows, int columns, object htmlAttributes);
abstract member TextArea : string * string * int * int * obj -> Microsoft.AspNetCore.Html.IHtmlContent
override this.TextArea : string * string * int * int * obj -> Microsoft.AspNetCore.Html.IHtmlContent
Public Function TextArea (expression As String, value As String, rows As Integer, columns As Integer, htmlAttributes As Object) As IHtmlContent

Parameters

expression
String

Expression name, relative to the current model.

value
String

If non-null, value to include in the element.

rows
Int32

Number of rows in the textarea.

columns
Int32

Number of columns in the textarea.

htmlAttributes
Object

An Object that contains the HTML attributes for the element. Alternatively, an IDictionary<TKey,TValue> instance containing the HTML attributes.

Returns

A new IHtmlContent containing the <textarea> element.

Implements

Applies to