Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
L'enumerazione InputScope contiene valori che specificano quali ambiti di input vengono applicati a un determinato campo.
Sintassi
typedef enum __MIDL___MIDL_itf_inputscope_0000_0000_0001 {
IS_DEFAULT = 0,
IS_URL = 1,
IS_FILE_FULLFILEPATH = 2,
IS_FILE_FILENAME = 3,
IS_EMAIL_USERNAME = 4,
IS_EMAIL_SMTPEMAILADDRESS = 5,
IS_LOGINNAME = 6,
IS_PERSONALNAME_FULLNAME = 7,
IS_PERSONALNAME_PREFIX = 8,
IS_PERSONALNAME_GIVENNAME = 9,
IS_PERSONALNAME_MIDDLENAME = 10,
IS_PERSONALNAME_SURNAME = 11,
IS_PERSONALNAME_SUFFIX = 12,
IS_ADDRESS_FULLPOSTALADDRESS = 13,
IS_ADDRESS_POSTALCODE = 14,
IS_ADDRESS_STREET = 15,
IS_ADDRESS_STATEORPROVINCE = 16,
IS_ADDRESS_CITY = 17,
IS_ADDRESS_COUNTRYNAME = 18,
IS_ADDRESS_COUNTRYSHORTNAME = 19,
IS_CURRENCY_AMOUNTANDSYMBOL = 20,
IS_CURRENCY_AMOUNT = 21,
IS_DATE_FULLDATE = 22,
IS_DATE_MONTH = 23,
IS_DATE_DAY = 24,
IS_DATE_YEAR = 25,
IS_DATE_MONTHNAME = 26,
IS_DATE_DAYNAME = 27,
IS_DIGITS = 28,
IS_NUMBER = 29,
IS_ONECHAR = 30,
IS_PASSWORD = 31,
IS_TELEPHONE_FULLTELEPHONENUMBER = 32,
IS_TELEPHONE_COUNTRYCODE = 33,
IS_TELEPHONE_AREACODE = 34,
IS_TELEPHONE_LOCALNUMBER = 35,
IS_TIME_FULLTIME = 36,
IS_TIME_HOUR = 37,
IS_TIME_MINORSEC = 38,
IS_NUMBER_FULLWIDTH = 39,
IS_ALPHANUMERIC_HALFWIDTH = 40,
IS_ALPHANUMERIC_FULLWIDTH = 41,
IS_CURRENCY_CHINESE = 42,
IS_BOPOMOFO = 43,
IS_HIRAGANA = 44,
IS_KATAKANA_HALFWIDTH = 45,
IS_KATAKANA_FULLWIDTH = 46,
IS_HANJA = 47,
IS_HANGUL_HALFWIDTH = 48,
IS_HANGUL_FULLWIDTH = 49,
IS_SEARCH = 50,
IS_FORMULA = 51,
IS_SEARCH_INCREMENTAL = 52,
IS_CHINESE_HALFWIDTH = 53,
IS_CHINESE_FULLWIDTH = 54,
IS_NATIVE_SCRIPT = 55,
IS_YOMI = 56,
IS_TEXT = 57,
IS_CHAT = 58,
IS_NAME_OR_PHONENUMBER = 59,
IS_EMAILNAME_OR_ADDRESS = 60,
IS_PRIVATE = 61,
IS_MAPS = 62,
IS_NUMERIC_PASSWORD = 63,
IS_NUMERIC_PIN = 64,
IS_ALPHANUMERIC_PIN = 65,
IS_ALPHANUMERIC_PIN_SET = 66,
IS_FORMULA_NUMBER = 67,
IS_CHAT_WITHOUT_EMOJI = 68,
IS_PHRASELIST = -1,
IS_REGULAREXPRESSION = -2,
IS_SRGS = -3,
IS_XML = -4,
IS_ENUMSTRING = -5
} InputScope;
Costanti
| | | ---- | | IS_DEFAULT
Valore: 0
Indica il pregiudizio di riconoscimento standard. Considerato come predefinito e usa il lexicon predefinito. Se combinato con un altro ambito di input, non forza la coercizione sull'altro ambito di input. | | IS_URL
Valore: 1
Indica un URL, un file o un formato FTP. Gli esempi includono quanto segue.
- http://www.humongousinsurance.com/
- ftp://ftp.microsoft.com
- www.microsoft.com
- file:///C:\templ.txt
- $
IS_FILE_FULLFILEPATHValore: 2
Indica un percorso di file. Vengono applicate le condizioni seguenti.
- Per il nome del server e il nome della condivisione, consente tutti i caratteri di IS_ONECHAR tranne: * ? : <> |
- Per il nome file, consente tutti i caratteri di IS_ONECHAR tranne: \ / : <> |
- L'input deve iniziare con \ o il nome dell'unità o \ o .. \ o .\ o /
- Gli spazi sono consentiti.
Gli esempi includono quanto segue.
- \servername\sharename\filename.txt
- C:\temp\current work.doc
- .. /images/hank.jpg
IS_FILE_FILENAMEValore: 3
Indica un nome file. Vengono applicate le condizioni seguenti.
- Accetta l'estensione o nessuna estensione.
- Consente tutti i caratteri IS_ONECHAR tranne: \ / : <> |
- Gli spazi sono consentiti.
Negli esempi vengono illustrati gli aspetti seguenti:
- filename.txt
- nomefile
- file name.txt
IS_EMAIL_USERNAMEValore: 4
Indica i nomi utente di posta elettronica. Gli esempi includono quanto segue.
- jeffsm
- JeffSm
- Jsmith
- JSmith
- jeffsmith
IS_EMAIL_SMTPEMAILADDRESSValore: 5
Indica un indirizzo di posta elettronica SMTP completo, ad esempio someone@example.com. | |
IS_LOGINNAMEValore: 6
Indica un nome e un dominio di accesso. Vengono applicate le condizioni seguenti.
- Consente tutti i caratteri di IS_ONECHAR.
- Non consente l'avvio o il nome utente di dominio o di fine in un carattere non alfanumerico.
- Gli spazi non sono consentiti.
Gli esempi includono quanto segue.
- CHICAGO\JSMITH
- JSMITH
IS_PERSONALNAME_FULLNAMEValore: 7
Indica una combinazione di nomi iniziali, intermedi e di cognome. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- Mr. Jeff A. Smith, Jr.
- Jeff Smith
- Smith, Jeff
- Smith, Jeff A
IS_PERSONALNAME_PREFIXValore: 8
Indica un titolo o un onore che precede un nome. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- Signor.
- Dr.
- Signorina
- Signore
IS_PERSONALNAME_GIVENNAMEValore: 9
Indica un nome o un nome iniziale. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- Jeff
- J.
- J.A.
IS_PERSONALNAME_MIDDLENAMEValore: 10
Indica un nome intermedio o un nome iniziale. Gli esempi includono quanto segue.
- Albert
- A.
IS_PERSONALNAME_SURNAMEValore: 11
Indica un cognome. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- Smith
- Smith Jones
- Smith-Jones
IS_PERSONALNAME_SUFFIXValore: 12
Indica un'abbreviazione di suffisso nome o numeri romani. Gli esempi includono quanto segue.
- Jr.
- III
IS_ADDRESS_FULLPOSTALADDRESSValore: 13
Indica un indirizzo completo, inclusi i numeri. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- 123 Main Street, Anytown, WA 98989
- Casella po 123 Anytown, WA 98989
IS_ADDRESS_POSTALCODEValore: 14
Indica un codice postale alfanumerico. Il valore è alfanumerico per supportare i codici postali internazionali. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- 98989
- 98989-1234
IS_ADDRESS_STREETValore: 15
Indica un numero di casa, un numero di strada, il nome dell'appartamento e il numero e/o la casella postale. Gli esempi includono quanto segue.
- 123 Main Street
- P.O. Box 1234
IS_ADDRESS_STATEORPROVINCEValore: 16
Indica un nome completo o un'abbreviazione di stato o provincia. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- WA
- Washington
- Attendere
IS_ADDRESS_CITYValore: 17
Indica il nome o l'abbreviazione di una città. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- New York
- NYC
IS_ADDRESS_COUNTRYNAMEValore: 18
Indica il nome di un paese/area geografica. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- Italia
- Giappone
- Stati Uniti d'America
IS_ADDRESS_COUNTRYSHORTNAMEValore: 19
Indica l'abbreviazione del nome di un paese/area geografica. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- USA
- USA.
IS_CURRENCY_AMOUNTANDSYMBOLValore: 20
Indica i simboli di valuta e i numeri. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- $ 2,100,25
- $.35
- $1,234,50 USD
IS_CURRENCY_AMOUNTValore: 21
Indica un valore numerico per la valuta, escluso i simboli di valuta. Ad esempio, 2.100.25. | |
IS_DATE_FULLDATEValore: 22
Indica una data completa, in un'ampia gamma di formati. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- 07-17-2001
- 7/17/01
- 7/17
- 12 dicembre
- 17 luglio
- 17 luglio 2001
IS_DATE_MONTHValore: 23
Indica una rappresentazione numerica di mesi, vincolata a 1-12. Gli esempi includono quanto segue.
- 7
- 07
- 11
IS_DATE_DAYValore: 24
Indica una rappresentazione numerica di giorni, vincolata a 1-31. Gli esempi includono quanto segue.
- 1
- 04
- 17
IS_DATE_YEARValore: 25
Indica una rappresentazione numerica di anni. Gli esempi includono quanto segue.
- 1988
- 2004
- 88
- 04
- '88
IS_DATE_MONTHNAMEValore: 26
Indica una rappresentazione di caratteri di mesi. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- Dicembre
- Dec
- Dicembre.
IS_DATE_DAYNAMEValore: 27
Indica una rappresentazione di caratteri di giorni. Gli esempi includono quanto segue, formattato per l'inglese (Stati Uniti).
- Wednesday
- Sposi novelli
- Sposi novelli.
IS_DIGITSValore: 28
Indica numeri interi positivi, vincolati a 0-9. | |
IS_NUMBERValore: 29
Indica numeri, inclusi virgole, segno negativo e decimale. Per le posizioni Stati Uniti, vengono applicate le condizioni seguenti.
- Il separatore migliaia è una virgola.
- Il separatore decimale è un punto.
- I numeri negativi sono rappresentati con un trattino senza uno spazio, non con parentesi.
IS_ONECHARValore: 30
Indica un singolo carattere ANSI, codepage 1252. Per le posizioni Stati Uniti, sono inclusi i caratteri seguenti.
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdEfghijklmnopqrstuvwxyz0123456789!" #$%&'()*+,-./:;<=>?@[]^IS_PASSWORD
{|}~ | | <br>Value: *44*<br>Indicates Hiragana characters. | | <br>Value: *37*<br>Indicates a numeric representation of hours, constrained to 0-24. | | <br>Value: *36*<br>Indicates hours, minutes, seconds, and alphabetical time abbreviations. US English uses the 12 hour clock. Leading zeros are optional for hours but required for minutes and seconds. Hours are constrained to 0-24; minutes and seconds are constrained to 0-59. Examples include the following, formatted for English (United States).<br><br><ul><br><li>3:20</li><br><li>04:30</li><br><li>11:20:55</li><br><li>11:15 am</li><br><li>4:30 AM</li><br></ul> | | <br>Value: *38*<br>Indicates a numeric representation of minutes or seconds, constrained to 0-59. | | <br>Value: *42*<br>Indicates Chinese currency. | | <br>Value: *41*<br>Indicates full-width alphanumeric characters for East-Asian languages, constrained to full-width alphabet characters and numbers. | | <br>Value: *43*<br>Indicates Bopomofo characters. | | <br>Value: *40*<br>Indicates half-width alphanumeric characters for East-Asian languages, constrained to half-width alphabetical characters and numbers. | | <br>Value: *45*<br>Indicates half-width Katakana characters. | | <br>Value: *46*<br>Indicates full-width Katakana characters. | | <br>Value: *31*<br>Indicates a password. <b>IS_PASSWORD</b> is not supported and may be altered or unavailable in the future.<br><br><br><div class="alert"><b>Note</b> <b>IS_PASSWORD</b> only indicates the password; it doesn't provide any security around the password. All passwords fields should have text services disabled to maintain password secrecy, and therefore it is not valid to have a password field with an <b>IS_PASSWORD</b> input scope.</div><br><div> </div> | | <br>Value: *33*<br>Indicates telephone country codes. Examples include the following, formatted for English (United States).<br><br><ul><br><li>+1</li><br><li>+44</li><br><li>001</li><br><li>00 44</li><br></ul> | | <br>Value: *47*<br>Indicates Hanja characters. | | <br>Value: *32*<br>Indicates a telephone number. Alphabetical input is not allowed. Examples include the following, formatted for English (United States).<br><br><ul><br><li>(206) 555-0123</li><br><li>555-0123</li><br><li>555.0123</li><br><li>206-555-0123</li><br><li>1-206-555-0123x1234</li><br><li>+1 (206) 555-1234</li><br></ul> | | <br>Value: *34*<br>Indicates telephone area codes. Examples include the following, formatted for English (United States).<br><br><ul><br><li>(206)</li><br><li>206</li><br></ul> | | <br>Value: *35*<br>Indicates a telephone number, excluding country or area code. Examples include the following, formatted for English (United States).<br><br><ul><br><li>555-0123</li><br><li>555 0123</li><br><li>555.0123</li><br></ul> | | <br>Value: *39*<br>Indicates full-width number, used for Japanese only. Constrained to full-width numbers and Kanji numbers. | | IS_TELEPHONE_FULLTELEPHONENUMBER IS_TELEPHONE_COUNTRYCODE IS_TELEPHONE_AREACODE IS_TELEPHONE_LOCALNUMBER IS_TIME_FULLTIME IS_TIME_HOUR IS_TIME_MINORSEC IS_NUMBER_FULLWIDTH IS_ALPHANUMERIC_HALFWIDTH IS_ALPHANUMERIC_FULLWIDTH IS_CURRENCY_CHINESE IS_BOPOMOFO IS_HIRAGANA IS_KATAKANA_HALFWIDTH IS_KATAKANA_FULLWIDTH IS_KATAKANA_FULLWIDTH IS_HANJA IS_HANGUL_HALFWIDTH<br>Value: *48*<br>Indicates half-width Hangul characters. | | <br>Value: *49*<br>Indicates full-width Hangul characters. | | IS_HANGUL_FULLWIDTH<br>Value: *50*<br><b>Starting with Windows 8:</b> Indicates a search string. | | <br>Value: *54*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for Chinese full-width characters. | | <br>Value: *55*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for native script. | | <br>Value: *53*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for Chinese half-width characters. | | <br>Value: *52*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for search boxes where incremental results are displayed as the user types. | | <br>Value: *51*<br><b>Starting with Windows 8:</b> Indicates a formula control, for example, a spreadsheet field. | | IS_SEARCH IS_FORMULA IS_SEARCH_INCREMENTAL IS_CHINESE_HALFWIDTH IS_CHINESE_FULLWIDTH IS_NATIVE_SCRIPT IS_YOMI<br>Value: *56*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for Japanese names. | | <br>Value: *58*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for chat strings. | | <br>Value: *65*<br><b>Starting with Windows 10:</b> Indicates expected input is an alphanumeric PIN. | | <br>Value: *59*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for working with a name or telephone number. | | <br>Value: *64*<br><b>Starting with Windows 10:</b> Indicates expected input is a numeric PIN. | | <br>Value: *61*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for working with private data. | | <br>Value: *57*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for working with text. | | <br>Value: *63*<br><b>Starting with Windows 10:</b> Indicates expected input is a numeric password, or PIN. | | <br>Value: *62*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for working with a map location. | | <br>Value: *60*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for working with an email name or full email address. | | IS_TEXT IS_CHAT IS_CHAT IS_NAME_OR_PHONENUMBER IS_EMAILNAME_OR_ADDRESS IS_PRIVATE IS_MAPS IS_NUMERIC_PASSWORD IS_NUMERIC_PIN IS_ALPHANUMERIC_PIN_SET<br>Value: *66*<br><b>Starting with Windows 10:</b> Indicates expected input is an alphanumeric PIN for lock screen. | | <br>Value: *67*<br><b>Starting with Windows 10:</b> Indicates expected input is a mathematical formula. | | <br>Value: *68*<br><b>Starting with Windows 10:</b> Indicates expected input does not include emoji. | | <br>Value: *-1*<br>Indicates a phrase list. | | IS_ALPHANUMERIC_PIN IS_FORMULA_NUMBER IS_FORMULA_NUMBER IS_CHAT_WITHOUT_EMOJI IS_PHRASELIST IS_REGULAREXPRESSION<br>Value: *-2*<br>Indicates a regular expression. | | <br>Value: *-3*<br>Indicates an XML string that conforms to the Speech Recognition Grammar Specification (SRGS) standard. Information on SRGS can be found at <a href="https://www.w3.org/tr/speech-grammar">http://www.w3.org/TR/speech-grammar</a>. | | IS_SRGS<br>Value: *-4*<br>Indicates a custom xml string. | | IS_XML IS_ENUMSTRING'Valore: -5
L'ambito contiene il puntatore dell'interfaccia IEnumString. Il processore di input di testo (TIP) può chiamare ITfInputScope2::EnumWordList per recuperarlo. |
Commenti
Se un determinato valore di ambito di input è supportato può variare tra le tecnologie.
Requisiti
| Client minimo supportato | Windows XP [app desktop | App UWP] |
| Server minimo supportato | Windows Server 2003 [app desktop | App UWP] |
| Intestazione | inputscope.h |