共用方式為


inputScope 列舉 (inputscope.h)

InputScope 列舉包含值,指定哪些輸入範圍會套用至指定的欄位。

Syntax

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;

常數

| | | ---- | | IS_DEFAULT
值: 0
表示標準辨識偏差。 視為預設值,並使用預設語彙。 如果與另一個輸入範圍結合,它不會強制在其他輸入範圍上強制。 | | IS_URL
值: 1
表示 URL、檔案或 FTP 格式。 範例包括下列專案。


  • http://www.humongousinsurance.com/

  • ftp://ftp.microsoft.com

  • www.microsoft.com

  • file:///C:\templ.txt

  • $

| | IS_FILE_FULLFILEPATH
值: 2
表示檔案路徑。 會強制執行下列條件。


  • 針對伺服器名稱和共用名稱,允許除了: * 以外的所有IS_ONECHAR字元? : <> |

  • 針對檔名,允許所有IS_ONECHAR字元,但: \ / : <> |

  • 輸入的開頭必須是 \ 或磁碟驅動器名稱或 \ 或 。\ 或 .\ 或 /

  • 允許空格。


範例包括下列專案。


  • \servername\sharename\filename.txt

  • C:\temp\current work.doc

  • ../images/hank.jpg

| | IS_FILE_FILENAME
值: 3
表示檔名。 會強制執行下列條件。


  • 接受延伸模組或無延伸模組。

  • 允許所有IS_ONECHAR字元,但除外: \ / : <> |

  • 允許空格。


範例包括:


  • filename.txt

  • filename

  • 檔案 name.txt

| | IS_EMAIL_USERNAME
值: 4
表示電子郵件用戶名稱。 範例包括下列專案。


  • jeffsm

  • JeffSm

  • Jsmith

  • JSmith

  • jeffsmith

| | IS_EMAIL_SMTPEMAILADDRESS
值: 5
表示完整的 SMTP 電子郵件位址,例如 someone@example.com。 | | IS_LOGINNAME
值: 6
表示登入名稱和網域。 會強制執行下列條件。


  • 允許所有IS_ONECHAR字元。

  • 不允許網域或用戶名稱以非英數位元開頭或結尾。

  • 不允許空格。


範例包括下列專案。


  • 芝加哥\JSMITH

  • JSMITH

| | IS_PERSONALNAME_FULLNAME
值: 7
表示第一個、中間和姓氏的組合。 範例包括下列格式的英文 (美國) 。


  • Mr. Jeff A. Smith, Jr.

  • Jeff Smith

  • Smith、Jeff

  • Smith、Jeff A

| | IS_PERSONALNAME_PREFIX
值: 8
表示名稱前面的接受或標題。 範例包括下列格式的英文 (美國) 。


  • 先生。

  • Dr.

  • 遺漏

  • 先生

| | IS_PERSONALNAME_GIVENNAME
值: 9
表示名字或初始。 範例包括下列格式的英文 (美國) 。


  • Jeff

  • J.

  • J.A.

| | IS_PERSONALNAME_MIDDLENAME
值: 10
表示中間名或縮寫。 範例包括下列專案。


  • 阿爾伯特

  • A.

| | IS_PERSONALNAME_SURNAME
值: 11
表示姓氏。 範例包括下列格式的英文 (美國) 。


  • Smith

  • Smith Jones

  • Smith-Jones

| | IS_PERSONALNAME_SUFFIX
值: 12
表示名稱後綴縮寫或羅馬數位。 範例包括下列專案。


  • 小。

  • III

| | IS_ADDRESS_FULLPOSTALADDRESS
值: 13
表示完整位址,包括數位。 範例包括下列格式的英文 (美國) 。


  • 123 Main Street、Anytown、WA 98989

  • PO Box 123 Anytown, WA 98989

| | IS_ADDRESS_POSTALCODE
值: 14
表示英數位元郵政編碼。 此值為英數位元,可支援國際郵遞區號。 範例包括下列格式的英文 (美國) 格式。


  • 98989

  • 98989-1234

| | IS_ADDRESS_STREET
值: 15
表示房屋號碼、街道號碼、Apartment 名稱和數位,以及/或郵遞區編碼方塊。 範例包括下列專案。


  • 123 Main Street

  • P.O. Box 1234

| | IS_ADDRESS_STATEORPROVINCE
值: 16
表示州或省的完整名稱或縮寫。 範例包括下列格式的英文 (美國) 格式。


  • WA

  • Washington


| | IS_ADDRESS_CITY
值: 17
表示城市的名稱或縮寫。 範例包括下列格式的英文 (美國) 格式。


  • 紐約

  • NYC

| | IS_ADDRESS_COUNTRYNAME
值: 18
指出國家/地區的名稱。 範例包括下列格式的英文 (美國) 格式。


  • 義大利

  • 日本

  • 美利堅合眾國

| | IS_ADDRESS_COUNTRYSHORTNAME
值: 19
表示國家/地區名稱的縮寫。 範例包括下列格式的英文 (美國) 格式。


  • USA

  • 美國。

| | IS_CURRENCY_AMOUNTANDSYMBOL
值: 20
表示貨幣符號和數位。 範例包括下列格式的英文 (美國) 格式。


  • $ 2,100.25

  • $.35

  • $1,234.50 美元

| | IS_CURRENCY_AMOUNT
值: 21
表示貨幣的數值,不包括貨幣符號。 例如,2,100.25。 | | IS_DATE_FULLDATE
值: 22
以各種格式表示完整日期。 範例包括下列格式的英文 (美國) 格式。


  • 07-17-2001

  • 7/17/01

  • 7/17

  • 12 月 12 日

  • 7 月 17 日

  • 2001 年 7 月 17 日

| | IS_DATE_MONTH
值: 23
表示月份的數值表示法,限制為1-12。 範例包括下列專案。


  • 7

  • 07

  • 11

| | IS_DATE_DAY
值: 24
表示天數的數值表示法,限制為 1-31。 範例包括下列專案。


  • 1

  • 04

  • 17

| | IS_DATE_YEAR
值: 25
表示年份的數值表示法。 範例包括下列專案。


  • 1988

  • 2004

  • 88

  • 04

  • '88

| | IS_DATE_MONTHNAME
值: 26
表示月份的字元表示。 範例包括下列格式的英文 (美國) 格式。


  • December

  • Dec

  • 12 月。

| | IS_DATE_DAYNAME
值: 27
表示天數的字元表示。 範例包括下列格式的英文 (美國) 格式。


  • 星期三

  • 新婚 夫婦

  • 新婚 夫婦。

| | IS_DIGITS
值: 28
表示正整數,限制為0-9。 | | IS_NUMBER
值: 29
表示數位,包括逗號、負號和十進位。 針對 美國 位置,會強制執行下列條件。


  • 千位分隔符是逗號。

  • 小數分隔符是句點。

  • 負數以不含空格的連字元表示,而不是括號。

| | IS_ONECHAR
值: 30
表示單一 ANSI 字元,代碼頁 1252。 對於 美國 位置,這包括下列字元。

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdEfghijklmnopqrstuvwxyz0123456789!”#$%&' () *+,-./:;<=>?@[]^_{|}~ | | IS_PASSWORD<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: *39*<br>Indicates full-width number, used for Japanese only. Constrained to full-width numbers and Kanji numbers. | | <br>Value: *37*<br>Indicates a numeric representation of hours, constrained to 0-24. | | <br>Value: *38*<br>Indicates a numeric representation of minutes or seconds, constrained to 0-59. | | <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: *40*<br>Indicates half-width alphanumeric characters for East-Asian languages, constrained to half-width alphabetical characters and numbers. | | <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: *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: *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: *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> | | IS_TELEPHONE_FULLTELEPHONENUMBER IS_TELEPHONE_COUNTRYCODE IS_TELEPHONE_AREACODE IS_TELEPHONE_LOCALNUMBER IS_TIME_FULLTIME IS_TIME_HOUR IS_TIME_MINORSEC IS_TIME_MINORSEC IS_NUMBER_FULLWIDTH IS_ALPHANUMERIC_HALFWIDTH IS_ALPHANUMERIC_FULLWIDTH<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: *47*<br>Indicates Hanja characters. | | <br>Value: *42*<br>Indicates Chinese currency. | | <br>Value: *44*<br>Indicates Hiragana characters. | | <br>Value: *45*<br>Indicates half-width Katakana characters. | | <br>Value: *46*<br>Indicates full-width Katakana characters. | | IS_CURRENCY_CHINESE IS_BOPOMOFO IS_HIRAGANA IS_KATAKANA_HALFWIDTH 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: *51*<br><b>Starting with Windows 8:</b> Indicates a formula control, for example, a spreadsheet field. | | <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. | | <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: *57*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for working with text. | | <br>Value: *58*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for chat strings. | | <br>Value: *55*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for native script. | | <br>Value: *61*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for working with private data. | | <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: *56*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for Japanese names. | | <br>Value: *54*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for Chinese full-width characters. | | <br>Value: *53*<br><b>Starting with Windows 10:</b> Indicates input scope is intended for Chinese half-width characters. | | IS_SEARCH IS_FORMULA IS_SEARCH_INCREMENTAL IS_CHINESE_HALFWIDTH IS_CHINESE_FULLWIDTH IS_NATIVE_SCRIPT IS_YOMI IS_TEXT IS_CHAT IS_NAME_OR_PHONENUMBER IS_EMAILNAME_OR_ADDRESS IS_EMAILNAME_OR_ADDRESS IS_PRIVATE IS_NUMERIC_PASSWORD<br>Value: *63*<br><b>Starting with Windows 10:</b> Indicates expected input is a numeric password, or PIN. | | <br>Value: *65*<br><b>Starting with Windows 10:</b> Indicates expected input is an alphanumeric PIN. | | <br>Value: *-1*<br>Indicates a phrase list. | | <br>Value: *64*<br><b>Starting with Windows 10:</b> Indicates expected input is a numeric PIN. | | <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. | | IS_MAPS IS_NUMERIC_PIN IS_ALPHANUMERIC_PIN IS_ALPHANUMERIC_PIN_SET 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'
值: -5
範圍包含 IEnumString 介面指標。 文字輸入處理器 (TIP) 可以呼叫 ITfInputScope2::EnumWordList 來擷取它。 |

備註

是否支援指定的輸入範圍值,可能會因技術而異。

規格需求

   
最低支援的用戶端 Windows XP [傳統型應用程式 |UWP 應用程式]
最低支援的伺服器 Windows Server 2003 [傳統型應用程式 |UWP 應用程式]
標頭 inputscope.h

另請參閱

ITfInputScope

SetInputScope

SetInputScopeXML

SetInputScopes