SayAs 列舉

定義

列舉適用於讀出如時間、日期和貨幣等項目的內容類型。

public enum class SayAs
public enum SayAs
type SayAs = 
Public Enum SayAs
繼承

欄位

Date 3

將數字序列讀出為日期。 例如,將 "05/19/2004" 或 "19.5.2004" 讀作 "may nineteenth two thousand four"。

Day 13

將數字讀出為日期中的天。 例如,將 "3rd" 讀做 "third"。

DayMonth 10

將數字序列讀出為日和月。 例如,將 "12/05" 讀作 "May twelfth",並將 "05/12" 讀作 "December 5th"。

DayMonthYear 4

將數字序列讀出為日期,包括日、月和年。 例如,將 "12/05/2004" 讀作 "May twelfth two thousand four"。

Month 12

將一個字唸為月份。 例如,將 "June" 讀作 "June"。

MonthDay 9

將數字序列讀出為月和日。 例如,將 "05/12" 讀作 "may twelfth",並將 "12/5" 讀作 "December 5th"。

MonthDayYear 5

將數字序列讀出為日期,包括日、月和年。 例如,將 "12/05/2004" 讀作 "December fifth two thousand four"。

MonthYear 8

將數字序列讀出為月和年。 例如,將 "05/2004" 讀作 "May two thousand four"。

NumberCardinal 2

將數字讀出為基數。 例如,將 "3" 讀做 "three"。

NumberOrdinal 1

將數字讀出為序數。 例如,將 "3rd" 讀做 "third"。

SpellOut 0

拼寫單字或片語。 例如,將 "clock" 說成 "C L O C K"。

Telephone 17

將數字序列讀出為美國的電話號碼。 例如,將 "(306) 555-1212" 讀作 "Area code three zero six five five five one two one two"。

Text 18

將單字或片語依文字讀出。 例如,將 "timeline" 讀作 "timeline"。

Time 14

將數字序列讀出為時間。 例如,將 "9:45" 讀作 "nine forty-five",並將 "9:45am" 讀作 "nine forty-five A M"。

Time12 16

將數字序列讀出為使用 12 小時制的時間。 例如,將 "03:25" 讀作 "three twenty-five"。

Time24 15

將數字序列讀出為使用 24 小時制的時間。 例如,將 "18:00" 讀作 "eighteen hundred hours"。

Year 11

將數字讀出為年份。 例如,將 "1998" 讀作 "nineteen ninety-eight"。

YearMonth 7

將數字序列讀出為年和月。 例如,將 "2004/05" 讀作 "May two thousand four"。

YearMonthDay 6

將數字序列讀出為日期,包括日、月和年。 例如,將 "2004/05/12" 讀作 "May twelfth two thousand four"。

備註

AppendTextWithHint方法會使用列舉的成員 SayAs 來指定附加文字的內容類型,讓語音合成引擎可以用它來通知發音。

適用於