Bewerken

Share via


TextBoxMode Enum

Definition

Specifies the behavior mode of the text box.

public enum class TextBoxMode
public enum TextBoxMode
type TextBoxMode = 
Public Enum TextBoxMode
Inheritance
TextBoxMode

Fields

Name Value Description
SingleLine 0

Represents single-line entry mode.

MultiLine 1

Represents multiline entry mode.

Password 2

Represents password entry mode.

Color 3

Represents color entry mode.

Date 4

Represents date entry mode.

DateTime 5

Represents date-time entry mode.

DateTimeLocal 6

Represents local date-time entry mode.

Email 7

Represents email address entry mode.

Month 8

Represents month entry mode.

Number 9

Represents number entry mode.

Range 10

Represents numeric range entry mode.

11

Represents search string entry mode.

Phone 12

Represents phone number entry mode.

Time 13

Represents time entry mode.

Url 14

Represents URL entry mode.

Week 15

Represents week entry mode.

Remarks

The TextBoxMode enumeration represents the different display options for TextBox controls.

SingleLine mode displays the TextBox control as a single row. If the user enters text that exceeds the physical size of the TextBox control, the text will scroll horizontally.

MultiLine mode displays the height of the TextBox based on the Rows property, and allows data entry on multiple lines. The text will automatically wrap if the TextBox.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.

The behavior of Password mode is similar to SingleLine mode except that all characters entered in the TextBox control are masked and are not saved in view state.

The remaining options correspond to type attribute values for the input element in the HTML5 specification.

Applies to

See also