Class Textarea
Generate a standard HTML5 <textarea> tag
Implements
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class Textarea : Tag<Textarea>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable
Methods
| Improve this Doc View SourceAutofocus()
Activate the autofocus attribute on the <textarea> tag
Declaration
public Textarea Autofocus()
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Autofocus(String)
Set the autofocus attribute on the <textarea> tag
Declaration
public Textarea Autofocus(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in autofocus='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Cols(String)
Set the cols attribute on the <textarea> tag
Declaration
public Textarea Cols(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in cols='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Dirname(String)
Set the dirname attribute on the <textarea> tag
Declaration
public Textarea Dirname(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in dirname='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Disabled()
Activate the disabled attribute on the <textarea> tag
Declaration
public Textarea Disabled()
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Disabled(String)
Set the disabled attribute on the <textarea> tag
Declaration
public Textarea Disabled(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in disabled='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Form(String)
Set the form attribute on the <textarea> tag
Declaration
public Textarea Form(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in form='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Maxlength(String)
Set the maxlength attribute on the <textarea> tag
Declaration
public Textarea Maxlength(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in maxlength='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Name(String)
Set the name attribute on the <textarea> tag
Declaration
public Textarea Name(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in name='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Placeholder(String)
Set the placeholder attribute on the <textarea> tag
Declaration
public Textarea Placeholder(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in placeholder='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Readonly()
Activate the readonly attribute on the <textarea> tag
Declaration
public Textarea Readonly()
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Readonly(String)
Set the readonly attribute on the <textarea> tag
Declaration
public Textarea Readonly(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in readonly='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Required()
Activate the required attribute on the <textarea> tag
Declaration
public Textarea Required()
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Required(String)
Set the required attribute on the <textarea> tag
Declaration
public Textarea Required(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in required='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Rows(String)
Set the rows attribute on the <textarea> tag
Declaration
public Textarea Rows(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in rows='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |
Wrap(String)
Set the wrap attribute on the <textarea> tag
Declaration
public Textarea Wrap(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | what should be in wrap='...'. If called multiple times, later values replace the previous value. |
Returns
Type | Description |
---|---|
Textarea | a Textarea object to enable fluid command chaining |