TextBox.TextMode Property
Gets or sets the behavior mode (single-line, multiline, or password) of the TextBox control.
C#:
[ThemeableAttribute(false)]
public virtual TextBoxMode TextMode { get; set; }
ASP.NET
<asp:textbox textmode="TextBoxMode" xmlns:asp="#unknown" />
So :
TextBox txt = new TextBox();
... = txt.TextMode;
When the TextBox control is in multiline mode, you can control the number of rows displayed by setting the Rows property. You can also specify whether the text should wrap by setting the Wrap property.....
Regards,
Alex.