Share via


TextAreaExtensions.TextAreaFor 方法

定义

重载

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

返回由指定表达式表示的对象中每个属性的 HTML textarea 元素。

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

使用指定 HTML 特性,为由指定表达式表示的对象中的每个属性返回对应的 HTML textarea 元素。

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

使用指定 HTML 特性,为由指定表达式表示的对象中的每个属性返回对应的 HTML textarea 元素。

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Int32, Int32, IDictionary<String,Object>)

返回对象中每个属性的 HTML textarea 元素,该属性由指定的表达式使用指定的 HTML 属性以及行数和列数表示。

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Int32, Int32, Object)

返回对象中每个属性的 HTML textarea 元素,该属性由指定的表达式使用指定的 HTML 属性以及行数和列数表示。

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

返回由指定表达式表示的对象中每个属性的 HTML textarea 元素。

public static System.Web.Mvc.MvcHtmlString TextAreaFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression);
static member TextAreaFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextAreaFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty))) As MvcHtmlString

类型参数

TModel

模型的类型。

TProperty

属性的类型。

参数

htmlHelper
HtmlHelper<TModel>

此方法扩展的 HTML 帮助器实例。

expression
Expression<Func<TModel,TProperty>>

一个表达式,用于标识包含要呈现的属性的对象。

返回

一个由表达式表示的对象中的每个属性所对应的 HTML textarea 元素。

例外

expression 参数为 null。

适用于

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

使用指定 HTML 特性,为由指定表达式表示的对象中的每个属性返回对应的 HTML textarea 元素。

public static System.Web.Mvc.MvcHtmlString TextAreaFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextAreaFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public 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

类型参数

TModel

模型的类型。

TProperty

属性的类型。

参数

htmlHelper
HtmlHelper<TModel>

此方法扩展的 HTML 帮助器实例。

expression
Expression<Func<TModel,TProperty>>

一个表达式,用于标识包含要呈现的属性的对象。

htmlAttributes
IDictionary<String,Object>

一个包含要为该元素设置的 HTML 特性的字典。

返回

一个由表达式表示的对象中的每个属性所对应的 HTML textarea 元素。

例外

expression 参数为 null。

适用于

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

使用指定 HTML 特性,为由指定表达式表示的对象中的每个属性返回对应的 HTML textarea 元素。

public static System.Web.Mvc.MvcHtmlString TextAreaFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, object htmlAttributes);
static member TextAreaFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextAreaFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As Object) As MvcHtmlString

类型参数

TModel

模型的类型。

TProperty

属性的类型。

参数

htmlHelper
HtmlHelper<TModel>

此方法扩展的 HTML 帮助器实例。

expression
Expression<Func<TModel,TProperty>>

一个表达式,用于标识包含要呈现的属性的对象。

htmlAttributes
Object

一个包含要为该元素设置的 HTML 特性的字典。

返回

一个由表达式表示的对象中的每个属性所对应的 HTML textarea 元素。

例外

expression 参数为 null。

适用于

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Int32, Int32, IDictionary<String,Object>)

返回对象中每个属性的 HTML textarea 元素,该属性由指定的表达式使用指定的 HTML 属性以及行数和列数表示。

public static System.Web.Mvc.MvcHtmlString TextAreaFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, int rows, int columns, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextAreaFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * int * int * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public 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

类型参数

TModel

模型的类型。

TProperty

属性的类型。

参数

htmlHelper
HtmlHelper<TModel>

此方法扩展的 HTML 帮助器实例。

expression
Expression<Func<TModel,TProperty>>

一个表达式,用于标识包含要呈现的属性的对象。

rows
Int32

行数。

columns
Int32

列数。

htmlAttributes
IDictionary<String,Object>

一个包含要为该元素设置的 HTML 特性的字典。

返回

一个由表达式表示的对象中的每个属性所对应的 HTML textarea 元素。

例外

expression 参数为 null。

适用于

TextAreaFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Int32, Int32, Object)

返回对象中每个属性的 HTML textarea 元素,该属性由指定的表达式使用指定的 HTML 属性以及行数和列数表示。

public static System.Web.Mvc.MvcHtmlString TextAreaFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, int rows, int columns, object htmlAttributes);
static member TextAreaFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * int * int * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public 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

类型参数

TModel

模型的类型。

TProperty

属性的类型。

参数

htmlHelper
HtmlHelper<TModel>

此方法扩展的 HTML 帮助器实例。

expression
Expression<Func<TModel,TProperty>>

一个表达式,用于标识包含要呈现的属性的对象。

rows
Int32

行数。

columns
Int32

列数。

htmlAttributes
Object

一个包含要为该元素设置的 HTML 特性的字典。

返回

一个由表达式表示的对象中的每个属性所对应的 HTML textarea 元素。

例外

expression 参数为 null。

适用于