InputType

Enum for HTML input types.

API

Enum Values

Index Value Description
0 Text The default value. A single-line text field. Line-breaks are automatically removed from the input value.
1 Email A field for editing an email address. Looks like a InputType.Text input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.
2 Password A single-line text field whose value is obscured. Will alert user if site is not secure.
3 Search A single-line text field for entering search strings. Line-breaks are automatically removed from the input value. May include a delete icon in supporting browsers that can be used to clear the field. Displays a search icon instead of enter key on some devices with dynamic keypads.
4 Tel A control for entering a telephone number. Displays a telephone keypad in some devices with dynamic keypads.
5 Url A field for entering a URL. Looks like a InputType.Text input, but has validation parameters and relevant keyboard in supporting browsers and devices with dynamic keyboards.

Methods

Method Returns Description
CompareTo(object target) int
GetTypeCode() TypeCode
HasFlag(Enum flag) bool

Static Methods

Method Type Description
Format (Type enumType, object value, string format) string
GetName (TEnum value) string
GetName (Type enumType, object value) string
GetNames () string[]
GetNames (Type enumType) string[]
GetUnderlyingType (Type enumType) Type
GetValues () TEnum[]
GetValues (Type enumType) Array
IsDefined (TEnum value) bool
IsDefined (Type enumType, object value) bool
Parse (Type enumType, string value) object
Parse (Type enumType, ReadOnlySpan<char> value) object
Parse (Type enumType, string value, bool ignoreCase) object
Parse (Type enumType, ReadOnlySpan<char> value, bool ignoreCase) object
Parse (string value) TEnum
Parse (ReadOnlySpan<char> value) TEnum
Parse (string value, bool ignoreCase) TEnum
Parse (ReadOnlySpan<char> value, bool ignoreCase) TEnum
ToObject (Type enumType, object value) object
ToObject (Type enumType, sbyte value) object
ToObject (Type enumType, short value) object
ToObject (Type enumType, int value) object
ToObject (Type enumType, byte value) object
ToObject (Type enumType, Ushort value) object
ToObject (Type enumType, Uint value) object
ToObject (Type enumType, long value) object
ToObject (Type enumType, Ulong value) object
TryParse (Type enumType, string value, object& result) bool
TryParse (Type enumType, ReadOnlySpan<char> value, object& result) bool
TryParse (Type enumType, string value, bool ignoreCase, object& result) bool
TryParse (Type enumType, ReadOnlySpan<char> value, bool ignoreCase, object& result) bool
TryParse (string value, TEnum& result) bool
TryParse (ReadOnlySpan<char> value, TEnum& result) bool
TryParse (string value, bool ignoreCase, TEnum& result) bool
TryParse (ReadOnlySpan<char> value, bool ignoreCase, TEnum& result) bool
An unhandled error has occurred. Reload 🗙