HtmlHelperExtensions.TextAreaFor<TModel, TProperty> Method (HtmlHelper<TModel>, Expression<Func<TModel, TProperty>>, String, String, Nullable<Int32>, String, Boolean, String, String, Boolean, Nullable<Int32>, String, Nullable<Int32>, String)
Namespace: Microsoft.Web.Mvc.Html
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public static MvcHtmlString TextAreaFor<TModel, TProperty>(
this HtmlHelper<TModel> htmlHelper,
Expression<Func<TModel, TProperty>> expression,
string accessKey = null,
string cssClass = null,
Nullable<int> cols = null,
string dir = null,
bool disabled = false,
string id = null,
string lang = null,
bool readOnly = false,
Nullable<int> rows = null,
string style = null,
Nullable<int> tabIndex = null,
string title = null
)
public:
generic<typename TModel, typename TProperty>
[ExtensionAttribute]
static MvcHtmlString^ TextAreaFor(
HtmlHelper<TModel>^ htmlHelper,
Expression<Func<TModel, TProperty>^>^ expression,
String^ accessKey = null,
String^ cssClass = null,
Nullable<int> cols = null,
String^ dir = null,
bool disabled = false,
String^ id = null,
String^ lang = null,
bool readOnly = false,
Nullable<int> rows = null,
String^ style = null,
Nullable<int> tabIndex = null,
String^ title = null
)
static member TextAreaFor<'TModel, 'TProperty> :
htmlHelper:HtmlHelper<'TModel> *
expression:Expression<Func<'TModel, 'TProperty>> *
accessKey:string = null *
cssClass:string = null *
cols:Nullable<int> = null *
dir:string = null *
disabled:bool = false *
id:string = null *
lang:string = null *
readOnly:bool = false *
rows:Nullable<int> = null *
style:string = null *
tabIndex:Nullable<int> = null *
title:string = null -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function TextAreaFor(Of TModel, TProperty) (
htmlHelper As HtmlHelper(Of TModel),
expression As Expression(Of Func(Of TModel, TProperty)),
accessKey As String,
cssClass As String,
cols As Nullable(Of Integer),
dir As String,
disabled As Boolean,
id As String,
lang As String,
readOnly As Boolean,
rows As Nullable(Of Integer),
style As String,
tabIndex As Nullable(Of Integer),
title As String
) As MvcHtmlString
Parameters
- htmlHelper
Type: System.Web.Mvc.HtmlHelper<TModel>
- expression
Type: System.Linq.Expressions.Expression<Func<TModel, TProperty>>
- accessKey
Type: System.String
- cssClass
Type: System.String
- cols
Type: System.Nullable<Int32>
- dir
Type: System.String
- disabled
Type: System.Boolean
- id
Type: System.String
- lang
Type: System.String
- readOnly
Type: System.Boolean
- rows
Type: System.Nullable<Int32>
- style
Type: System.String
- tabIndex
Type: System.Nullable<Int32>
- title
Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlString
Type Parameters
- TModel
- TProperty
See Also
HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace
Return to top