CoreTextInputScope Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines constants that specify the set of input scope names. Input scope is used by the text input server and input processors to determine the layout of the Soft Input Panel (SIP), and what type of language model to use.
public enum class CoreTextInputScope
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CoreTextInputScope
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CoreTextInputScope
var value = Windows.UI.Text.Core.CoreTextInputScope.default
Public Enum CoreTextInputScope
- Inheritance
-
CoreTextInputScope
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Fields
Name | Value | Description |
---|---|---|
Default | 0 | No input scope is applied. |
Url | 1 | Expected input is a URL. |
FilePath | 2 | Expected input is characters used in describing a file path. |
FileName | 3 | Expected input is characters used in describing a file name. |
EmailUserName | 4 | Expected input is the account name portion of an email address. |
EmailAddress | 5 | Expected input is an SMTP form email address (<accountname>@<host>). |
UserName | 6 | Expected input is a log-in name and a domain (<accountname> or <domain><accountname>). |
PersonalFullName | 7 | Expected input is a person’s full name, including prefix, given name, middle name, surname, and suffix. |
PersonalNamePrefix | 8 | Expected input is the prefix portion of a person’s full name. (For example, "Mr.") |
PersonalGivenName | 9 | Expected input is the given (or first) name portion of a person’s full name. |
PersonalMiddleName | 10 | Expected input is the middle name portion of a person’s full name. |
PersonalSurname | 11 | Expected input is the family (or last) name portion of a person’s full name. |
PersonalNameSuffix | 12 | Expected input is the suffix portion of a person’s full name. (For example, "Jr.") |
Address | 13 | Expected input is a full postal address. (For example, "One Microsoft Way, Redmond, WA 98052, U.S.A.") |
AddressPostalCode | 14 | Expected input is the postal code (or zip code) portion a full address. (For example, "98052".) |
AddressStreet | 15 | Expected input is the street portion a full address. (For example, "Microsoft Way".) |
AddressStateOrProvince | 16 | Expected input is the state or province portion a full address. (For example, "WA".) |
AddressCity | 17 | Expected input is the city portion a full address. (For example, "Redmond".) |
AddressCountryName | 18 | Expected input is the country name portion a full address. (For example, "United States of America".) |
AddressCountryShortName | 19 | Expected input is the country abbreviation portion a full address. (For example, "U.S.A.") |
CurrencyAmountAndSymbol | 20 | Expected input is an amount of currency and a currency symbol. |
CurrencyAmount | 21 | Expected input is an amount of currency. |
Date | 22 | Expected input is a calendar date. |
DateMonth | 23 | Expected input is the numeric month portion of a calendar date. |
DateDay | 24 | Expected input is the numeric day portion of a calendar date. |
DateYear | 25 | Expected input is the year portion of a calendar date. |
DateMonthName | 26 | Expected input is the alphabetic name of the month from a calendar date. |
DateDayName | 27 | Expected input is the alphabetic name of the day from a calendar date. |
Digits | 28 | Expected input includes positive whole numbers, constrained to 0-9. |
Number | 29 | Expected input includes the digits 0-9, decimal separators, place separators, and negative sign. The exact characters used for decimal separators, place separators, and negative sign, depend on the user’s regional settings. |
SingleCharacter | 30 | Expected input is a single ANSI character, codepage 1252. |
Password | 31 | Expected input is a password. |
TelephoneNumber | 32 | Expected input is a full telephone number. (For example, "1(800)555-5555".) |
TelephoneCountryCode | 33 | Expected input is the country code portion of a full telephone number. (For example, "1".) |
TelephoneAreaCode | 34 | Expected input is the area code portion of a full telephone number. (For example, "(800)".) |
TelephoneLocalNumber | 35 | Expected input is the local number portion of a full telephone number. (For example, "555-5555".) |
Time | 36 | Expected input is a time value. |
TimeHour | 37 | Expected input is the hour portion of a time value. |
TimeMinuteOrSecond | 38 | Expected input is the minute or second portion of a time value. |
NumberFullWidth | 39 | Expected input is full-width number characters. |
AlphanumericHalfWidth | 40 | Expected input is half-width alphanumeric characters. |
AlphanumericFullWidth | 41 | Expected input is full-width alphanumeric characters. |
CurrencyChinese | 42 | Expected input is Chinese currency. |
Bopomofo | 43 | Expected input is the Bopomofo Mandarin Chinese phonetic transcription system. |
Hiragana | 44 | Expected input is Hiragana characters. |
KatakanaHalfWidth | 45 | Expected input is Katakana half-width characters. |
KatakanaFullWidth | 46 | Expected input is Katakana full-width characters. |
Hanja | 47 | Expected input is Hanja characters. |
HangulHalfWidth | 48 | Expected input is Hangul half-width characters. |
HangulFullWidth | 49 | Expected input is Hangul full-width characters. |
Search | 50 | Expected input is a search string. |
Formula | 51 | Expected input is a mathematical formula. |
SearchIncremental | 52 | Expected input is a search string. Use for search boxes where incremental results are displayed as the user types. |
ChineseHalfWidth | 53 | Expected input is Chinese half-width characters. |
ChineseFullWidth | 54 | Expected input is Chinese full-width characters. |
NativeScript | 55 | Expected input is native script. |
Text | 57 | Expected input is text; turns on typing intelligence. |
Chat | 58 | Expected input is chat strings. |
NameOrPhoneNumber | 59 | Expected input is a name or a telephone number. |
EmailUserNameOrAddress | 60 | Expected input is an email user name (<accountname>) or full email address (<accountname>@<host>). |
Private | 61 | Expected input is private data. Advises input processors that the text should not be stored nor logged. |
Maps | 62 | Expected input is from the device's Maps layout; does not include typing intelligence. |
PasswordNumeric | 63 | Expected input is a numeric password, or PIN. |
PinNumeric | 64 | Expected input is an numeric password, or PIN. Typically constrained to 5-6 digits. |
PinAlphanumeric | 65 | Expected input is an alphanumeric password, or PIN. Typically constrained to 5-6 characters. |
FormulaNumber | 67 | Expected input is a mathematical formula. Advises input processors to show the number page. |
ChatWithoutEmoji | 68 | Expected input does not include emoji. Advises input processors to not display the emoji key. |
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | ChatWithoutEmoji |
1709 | 16299 | Digits |
1709 | 16299 | PinAlphanumeric |
1709 | 16299 | PinNumeric |