HtmlHelper.TextArea Method

Definition

Overloads

TextArea(String, String, Int32, Int32, Object)

Returns an HTML multi-line text input (text area) control that has the specified name, value, row attribute, col attribute, and custom attributes defined by an attribute object.

TextArea(String, String, Int32, Int32, IDictionary<String,Object>)

Returns an HTML multi-line text input (text area) control that has the specified name, value, row attribute, col attribute, and custom attributes defined by an attribute dictionary.

TextArea(String, String, Object)

Returns an HTML multi-line text input (text area) control that has the specified name, value, and custom attributes defined by an attribute object.

TextArea(String, String, IDictionary<String,Object>)

Returns an HTML multi-line text input (text area) control that has the specified name, value, and custom attributes defined by an attribute dictionary.

TextArea(String, IDictionary<String,Object>)

Returns an HTML multi-line text input (text area) control that has the specified name and custom attributes defined by an attribute dictionary.

TextArea(String, Object)

Returns an HTML multi-line text input (text area) control that has the specified name and custom attributes defined by an attribute object.

TextArea(String)

Returns an HTML multi-line text input (text area) control that has the specified name.

TextArea(String, String)

Returns an HTML multi-line text input (text area) control that has the specified name and value.

TextArea(String, String, Int32, Int32, Object)

Returns an HTML multi-line text input (text area) control that has the specified name, value, row attribute, col attribute, and custom attributes defined by an attribute object.

public System.Web.IHtmlString TextArea (string name, string value, int rows, int columns, object htmlAttributes);
member this.TextArea : string * string * int * int * obj -> System.Web.IHtmlString
Public Function TextArea (name As String, value As String, rows As Integer, columns As Integer, htmlAttributes As Object) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textarea element.

value
String

The text to display.

rows
Int32

The value to assign to the rows attribute of the element.

columns
Int32

The value to assign to the cols attribute of the element.

htmlAttributes
Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to

TextArea(String, String, Int32, Int32, IDictionary<String,Object>)

Returns an HTML multi-line text input (text area) control that has the specified name, value, row attribute, col attribute, and custom attributes defined by an attribute dictionary.

public System.Web.IHtmlString TextArea (string name, string value, int rows, int columns, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.TextArea : string * string * int * int * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function TextArea (name As String, value As String, rows As Integer, columns As Integer, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textarea element.

value
String

The text to display.

rows
Int32

The value to assign to the rows attribute of the element.

columns
Int32

The value to assign to the cols attribute of the element.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to

TextArea(String, String, Object)

Returns an HTML multi-line text input (text area) control that has the specified name, value, and custom attributes defined by an attribute object.

public System.Web.IHtmlString TextArea (string name, string value, object htmlAttributes);
member this.TextArea : string * string * obj -> System.Web.IHtmlString
Public Function TextArea (name As String, value As String, htmlAttributes As Object) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textarea element.

value
String

The text to display.

htmlAttributes
Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to

TextArea(String, String, IDictionary<String,Object>)

Returns an HTML multi-line text input (text area) control that has the specified name, value, and custom attributes defined by an attribute dictionary.

public System.Web.IHtmlString TextArea (string name, string value, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.TextArea : string * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function TextArea (name As String, value As String, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textarea element.

value
String

The text to display.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to

TextArea(String, IDictionary<String,Object>)

Returns an HTML multi-line text input (text area) control that has the specified name and custom attributes defined by an attribute dictionary.

public System.Web.IHtmlString TextArea (string name, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
member this.TextArea : string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.IHtmlString
Public Function TextArea (name As String, htmlAttributes As IDictionary(Of String, Object)) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textarea element.

htmlAttributes
IDictionary<String,Object>

The names and values of custom attributes for the element.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to

TextArea(String, Object)

Returns an HTML multi-line text input (text area) control that has the specified name and custom attributes defined by an attribute object.

public System.Web.IHtmlString TextArea (string name, object htmlAttributes);
member this.TextArea : string * obj -> System.Web.IHtmlString
Public Function TextArea (name As String, htmlAttributes As Object) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textarea element.

htmlAttributes
Object

An object that contains custom attributes for the element. The attribute names and values are retrieved through reflection by examining the properties of the object.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to

TextArea(String)

Returns an HTML multi-line text input (text area) control that has the specified name.

public System.Web.IHtmlString TextArea (string name);
member this.TextArea : string -> System.Web.IHtmlString
Public Function TextArea (name As String) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textarea element.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to

TextArea(String, String)

Returns an HTML multi-line text input (text area) control that has the specified name and value.

public System.Web.IHtmlString TextArea (string name, string value);
member this.TextArea : string * string -> System.Web.IHtmlString
Public Function TextArea (name As String, value As String) As IHtmlString

Parameters

name
String

The value to assign to the name attribute of the HTML textrarea element.

value
String

The text to display.

Returns

The HTML markup that represents the text area control.

Exceptions

Sytem.ArgumentException

name is null or empty.

Applies to