TextBoxMode Enumeration
Specifies the behavior mode of the text box.
[Visual Basic] <Serializable> Public Enum TextBoxMode [C#] [Serializable] public enum TextBoxMode [C++] [Serializable] __value public enum TextBoxMode [JScript] public Serializable enum TextBoxMode
Remarks
The TextBoxMode enumeration represents the different display options for TextBox controls.
SingleLine mode displays the TextBox as a single row. If the user enters text that exceeds the physical size of the TextBox, the text will scroll left.
MultiLine mode displays the height of the TextBox based on the Rows property and it allows data entry on multiple lines. The text will automatically wrap if the Wrap property is set to true. If the user enters text that exceeds the physical size of the TextBox, the text will scroll accordingly and scroll bars will appear.
Password mode is identical to SingleLine mode except all characters entered into the TextBox are masked.
Members
| Member name | Description |
|---|---|
| MultiLine | Multi line entry mode. |
| Password | Password entry mode. |
| SingleLine | Single-line entry mode. |
Requirements
Namespace: System.Web.UI.WebControls
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
Assembly: System.Web (in System.Web.dll)
See Also
System.Web.UI.WebControls Namespace | TextBox | TextBox.TextMode