TextAreaExtensions.TextAreaFor Method
Returns an HTML textarea element for each property in the object that is represented by the specified expression.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | TextAreaFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty))) | Returns an HTML textarea element for each property in the object that is represented by the specified expression. |
![]() ![]() | TextAreaFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), IDictionary(Of String, Object)) | Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes. |
![]() ![]() | TextAreaFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), Int32, Int32, IDictionary(Of String, Object)) | Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes and the number of rows and columns. |
![]() ![]() | TextAreaFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), Int32, Int32, Object) | Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes and the number of rows and columns. |
![]() ![]() | TextAreaFor(Of TModel, TProperty)(HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), Object) | Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes. |
TextAreaExtensions.TextAreaFor(Of TModel, TProperty) Method (HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)))
Returns an HTML textarea element for each property in the object that is represented by the specified expression.
<ExtensionAttribute> Public Shared Function TextAreaFor(Of TModel, TProperty) ( htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)) ) As MvcHtmlString
Parameters
- htmlHelper
-
Type:
System.Web.Mvc.HtmlHelper(Of TModel)
The HTML helper instance that this method extends.
- expression
-
Type:
System.Linq.Expressions.Expression(Of Func(Of TModel, TProperty))
An expression that identifies the object that contains the properties to render.
Return Value
Type: System.Web.Mvc.MvcHtmlStringAn HTML textarea element for each property in the object that is represented by the expression.
Type Parameters
- TModel
The type of the model.
- TProperty
The type of the property.
| Exception | Condition |
|---|---|
| ArgumentNullException | The expression parameter is null. |
TextAreaExtensions.TextAreaFor(Of TModel, TProperty) Method (HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), IDictionary(Of String, Object))
Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes.
<ExtensionAttribute> Public Shared Function TextAreaFor(Of TModel, TProperty) ( htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As IDictionary(Of String, Object) ) As MvcHtmlString
Parameters
- htmlHelper
-
Type:
System.Web.Mvc.HtmlHelper(Of TModel)
The HTML helper instance that this method extends.
- expression
-
Type:
System.Linq.Expressions.Expression(Of Func(Of TModel, TProperty))
An expression that identifies the object that contains the properties to render.
- htmlAttributes
-
Type:
System.Collections.Generic.IDictionary(Of String, Object)
A dictionary that contains the HTML attributes to set for the element.
Return Value
Type: System.Web.Mvc.MvcHtmlStringAn HTML textarea element for each property in the object that is represented by the expression.
Type Parameters
- TModel
The type of the model.
- TProperty
The type of the property.
| Exception | Condition |
|---|---|
| ArgumentNullException | The expression parameter is null. |
TextAreaExtensions.TextAreaFor(Of TModel, TProperty) Method (HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), Int32, Int32, IDictionary(Of String, Object))
Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes and the number of rows and columns.
<ExtensionAttribute> Public Shared Function TextAreaFor(Of TModel, TProperty) ( htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), rows As Integer, columns As Integer, htmlAttributes As IDictionary(Of String, Object) ) As MvcHtmlString
Parameters
- htmlHelper
-
Type:
System.Web.Mvc.HtmlHelper(Of TModel)
The HTML helper instance that this method extends.
- expression
-
Type:
System.Linq.Expressions.Expression(Of Func(Of TModel, TProperty))
An expression that identifies the object that contains the properties to render.
- rows
-
Type:
System.Int32
The number of rows.
- columns
-
Type:
System.Int32
The number of columns.
- htmlAttributes
-
Type:
System.Collections.Generic.IDictionary(Of String, Object)
A dictionary that contains the HTML attributes to set for the element.
Return Value
Type: System.Web.Mvc.MvcHtmlStringAn HTML textarea element for each property in the object that is represented by the expression.
Type Parameters
- TModel
The type of the model.
- TProperty
The type of the property.
| Exception | Condition |
|---|---|
| ArgumentNullException | The expression parameter is null. |
TextAreaExtensions.TextAreaFor(Of TModel, TProperty) Method (HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), Int32, Int32, Object)
Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes and the number of rows and columns.
<ExtensionAttribute> Public Shared Function TextAreaFor(Of TModel, TProperty) ( htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), rows As Integer, columns As Integer, htmlAttributes As Object ) As MvcHtmlString
Parameters
- htmlHelper
-
Type:
System.Web.Mvc.HtmlHelper(Of TModel)
The HTML helper instance that this method extends.
- expression
-
Type:
System.Linq.Expressions.Expression(Of Func(Of TModel, TProperty))
An expression that identifies the object that contains the properties to render.
- rows
-
Type:
System.Int32
The number of rows.
- columns
-
Type:
System.Int32
The number of columns.
- htmlAttributes
-
Type:
System.Object
A dictionary that contains the HTML attributes to set for the element.
Return Value
Type: System.Web.Mvc.MvcHtmlStringAn HTML textarea element for each property in the object that is represented by the expression.
Type Parameters
- TModel
The type of the model.
- TProperty
The type of the property.
| Exception | Condition |
|---|---|
| ArgumentNullException | The expression parameter is null. |
TextAreaExtensions.TextAreaFor(Of TModel, TProperty) Method (HtmlHelper(Of TModel), Expression(Of Func(Of TModel, TProperty)), Object)
Returns an HTML textarea element for each property in the object that is represented by the specified expression using the specified HTML attributes.
<ExtensionAttribute> Public Shared Function TextAreaFor(Of TModel, TProperty) ( htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As Object ) As MvcHtmlString
Parameters
- htmlHelper
-
Type:
System.Web.Mvc.HtmlHelper(Of TModel)
The HTML helper instance that this method extends.
- expression
-
Type:
System.Linq.Expressions.Expression(Of Func(Of TModel, TProperty))
An expression that identifies the object that contains the properties to render.
- htmlAttributes
-
Type:
System.Object
A dictionary that contains the HTML attributes to set for the element.
Return Value
Type: System.Web.Mvc.MvcHtmlStringAn HTML textarea element for each property in the object that is represented by the expression.
Type Parameters
- TModel
The type of the model.
- TProperty
The type of the property.
| Exception | Condition |
|---|---|
| ArgumentNullException | The expression parameter is null. |

