HtmlHelper.TextArea 方法

定义

重载

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

返回一个 HTML 多行文本输入 (文本区域) 控件,该控件具有指定的名称、值、行属性、col 属性和由特性对象定义的自定义属性。

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

返回一个 HTML 多行文本输入 (文本区域) 控件,该控件具有由属性字典定义的指定名称、值、行属性、col 属性和自定义属性。

TextArea(String, String, Object)

返回一个具有指定名称、值以及由特性对象定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

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

返回一个具有指定名称、值以及由特性字典定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

TextArea(String, IDictionary<String,Object>)

返回一个具有指定名称以及由特性字典定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

TextArea(String, Object)

返回一个具有指定名称以及由特性对象定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

TextArea(String)

返回具有指定名称的 HTML 多行文本输入(文本区域)控件。

TextArea(String, String)

返回具有指定名称和值的 HTML 多行文本输入(文本区域)控件。

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

返回一个 HTML 多行文本输入 (文本区域) 控件,该控件具有指定的名称、值、行属性、col 属性和由特性对象定义的自定义属性。

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

参数

name
String

要分配给 HTML textarea 元素的 name 属性的值。

value
String

要显示的文本。

rows
Int32

要分配给元素的 rows 属性的值。

columns
Int32

要分配给元素的 cols 属性的值。

htmlAttributes
Object

包含元素的自定义特性的对象。 通过检查对象的属性,利用反射检索特性名称和值。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于

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

返回一个 HTML 多行文本输入 (文本区域) 控件,该控件具有由属性字典定义的指定名称、值、行属性、col 属性和自定义属性。

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

参数

name
String

要分配给 HTML textarea 元素的 name 属性的值。

value
String

要显示的文本。

rows
Int32

要分配给元素的 rows 属性的值。

columns
Int32

要分配给元素的 cols 属性的值。

htmlAttributes
IDictionary<String,Object>

元素的自定义特性的名称和值。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于

TextArea(String, String, Object)

返回一个具有指定名称、值以及由特性对象定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

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

参数

name
String

要分配给 HTML textarea 元素的 name 属性的值。

value
String

要显示的文本。

htmlAttributes
Object

包含元素的自定义特性的对象。 通过检查对象的属性,利用反射检索特性名称和值。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于

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

返回一个具有指定名称、值以及由特性字典定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

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

参数

name
String

要分配给 HTML textarea 元素的 name 属性的值。

value
String

要显示的文本。

htmlAttributes
IDictionary<String,Object>

元素的自定义特性的名称和值。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于

TextArea(String, IDictionary<String,Object>)

返回一个具有指定名称以及由特性字典定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

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

参数

name
String

要分配给 HTML textarea 元素的 name 属性的值。

htmlAttributes
IDictionary<String,Object>

元素的自定义特性的名称和值。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于

TextArea(String, Object)

返回一个具有指定名称以及由特性对象定义的自定义特性的 HTML 多行文本输入(文本区域)控件。

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

参数

name
String

要分配给 HTML textarea 元素的 name 属性的值。

htmlAttributes
Object

包含元素的自定义特性的对象。 通过检查对象的属性,利用反射检索特性名称和值。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于

TextArea(String)

返回具有指定名称的 HTML 多行文本输入(文本区域)控件。

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

参数

name
String

要分配给 HTML textarea 元素的 name 属性的值。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于

TextArea(String, String)

返回具有指定名称和值的 HTML 多行文本输入(文本区域)控件。

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

参数

name
String

要分配给 HTML textrarea 元素的 name 属性的值。

value
String

要显示的文本。

返回

表示文本区域控件的 HTML 标记。

例外

Sytem.ArgumentException

name 为 null 或为空。

适用于