System.Web.UI.HtmlControls Namespace HtmlTextArea Class
Sets or retrieves the display height of the text area.
Inline |
<textarea rows = intRows ... > |
Script |
HtmlTextArea.Rows [ = intRows ] |
intRows |
Integer specifying the display height, in rows, of the text area. |
The property is read/write with a default value of 2.
Use the Rows property to specify or determine the height, in rows, of the HtmlTextArea control.
This property specifies the number of visible text lines. Users may enter more lines than this, and browsers typically provide some means to scroll through the contents of the control when the contents extend beyond the visible area.
To specify the display width of the control, set the Cols property.
The below code snippet shows how to declaratively set the Rows property of an HtmltextArea control at design time.
<textarea cols=40 rows=5 runat="server"
value="This is an HtmltextArea that is 5 rows high and 40 characters wide." />
Which would render as follows:
HtmlTextArea Members Cols