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

包含元素之自訂屬性的物件。 這些屬性 (Attribute) 名稱和值是藉由檢查物件之屬性 (Property),透過反映所擷取而來。

傳回

表示文字區域控制項的 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

包含元素之自訂屬性的物件。 這些屬性 (Attribute) 名稱和值是藉由檢查物件之屬性 (Property),透過反映所擷取而來。

傳回

表示文字區域控制項的 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

包含元素之自訂屬性的物件。 這些屬性 (Attribute) 名稱和值是藉由檢查物件之屬性 (Property),透過反映所擷取而來。

傳回

表示文字區域控制項的 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 或空白。

適用於