TextAreaExtensions::TextArea Method
Returns the specified textarea element.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | TextArea(HtmlHelper^, String^) | Returns the specified textarea element by using the specified HTML helper and the name of the form field. |
![]() ![]() | TextArea(HtmlHelper^, String^, IDictionary<String^, Object^>^) | Returns the specified textarea element by using the specified HTML helper, the name of the form field, and the specified HTML attributes. |
![]() ![]() | TextArea(HtmlHelper^, String^, Object^) | Returns the specified textarea element by using the specified HTML helper and HTML attributes. |
![]() ![]() | TextArea(HtmlHelper^, String^, String^) | Returns the specified textarea element by using the specified HTML helper, the name of the form field, and the text content. |
![]() ![]() | TextArea(HtmlHelper^, String^, String^, IDictionary<String^, Object^>^) | Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, and the specified HTML attributes. |
![]() ![]() | TextArea(HtmlHelper^, String^, String^, Int32, Int32, IDictionary<String^, Object^>^) | Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, the number of rows and columns, and the specified HTML attributes. |
![]() ![]() | TextArea(HtmlHelper^, String^, String^, Int32, Int32, Object^) | Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, the number of rows and columns, and the specified HTML attributes. |
![]() ![]() | TextArea(HtmlHelper^, String^, String^, Object^) | Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, and the specified HTML attributes. |
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
TextAreaExtensions::TextArea Method (HtmlHelper^, String^)
Returns the specified textarea element by using the specified HTML helper and the name of the form field.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
TextAreaExtensions::TextArea Method (HtmlHelper^, String^, IDictionary<String^, Object^>^)
Returns the specified textarea element by using the specified HTML helper, the name of the form field, and the specified HTML attributes.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name, IDictionary<String^, Object^>^ htmlAttributes )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
- htmlAttributes
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
An object that contains the HTML attributes to set for the element.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for a textarea element, you might provide the following anonymous object:
TextAreaExtensions::TextArea Method (HtmlHelper^, String^, Object^)
Returns the specified textarea element by using the specified HTML helper and HTML attributes.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name, Object^ htmlAttributes )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
- htmlAttributes
-
Type:
System::Object^
An object that contains the HTML attributes to set for the element.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for a textarea element, you might provide the following anonymous object:
TextAreaExtensions::TextArea Method (HtmlHelper^, String^, String^)
Returns the specified textarea element by using the specified HTML helper, the name of the form field, and the text content.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name, String^ value )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
- value
-
Type:
System::String^
The text content.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
TextAreaExtensions::TextArea Method (HtmlHelper^, String^, String^, IDictionary<String^, Object^>^)
Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, and the specified HTML attributes.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name, String^ value, IDictionary<String^, Object^>^ htmlAttributes )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
- value
-
Type:
System::String^
The text content.
- htmlAttributes
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
An object that contains the HTML attributes to set for the element.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for a textarea element, you might provide the following anonymous object:
TextAreaExtensions::TextArea Method (HtmlHelper^, String^, String^, Int32, Int32, IDictionary<String^, Object^>^)
Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, the number of rows and columns, and the specified HTML attributes.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name, String^ value, int rows, int columns, IDictionary<String^, Object^>^ htmlAttributes )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
- value
-
Type:
System::String^
The text content.
- rows
-
Type:
System::Int32
The number of rows.
- columns
-
Type:
System::Int32
The number of columns.
- htmlAttributes
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
An object that contains the HTML attributes to set for the element.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for a textarea element, you might provide the following anonymous object:
TextAreaExtensions::TextArea Method (HtmlHelper^, String^, String^, Int32, Int32, Object^)
Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, the number of rows and columns, and the specified HTML attributes.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name, String^ value, int rows, int columns, Object^ htmlAttributes )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
- value
-
Type:
System::String^
The text content.
- rows
-
Type:
System::Int32
The number of rows.
- columns
-
Type:
System::Int32
The number of columns.
- htmlAttributes
-
Type:
System::Object^
An object that contains the HTML attributes to set for the element.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for a textarea element, you might provide the following anonymous object:
TextAreaExtensions::TextArea Method (HtmlHelper^, String^, String^, Object^)
Returns the specified textarea element by using the specified HTML helper, the name of the form field, the text content, and the specified HTML attributes.
public: [ExtensionAttribute] static MvcHtmlString^ TextArea( HtmlHelper^ htmlHelper, String^ name, String^ value, Object^ htmlAttributes )
Parameters
- htmlHelper
-
Type:
System.Web.Mvc::HtmlHelper^
The HTML helper instance that this method extends.
- name
-
Type:
System::String^
The name of the form field to return.
- value
-
Type:
System::String^
The text content.
- htmlAttributes
-
Type:
System::Object^
An object that contains the HTML attributes to set for the element.
The difference between calling the TextArea method and using a textarea element is that the TextArea method is designed to make it easy to bind to view data or model data.
The htmlAttributes parameter consists of an object that contains name/value pairs. The attributes that are specified in the name/value pairs depend on the HTML element that is being rendered. For example, for a textarea element, you might provide the following anonymous object:

