SayAs 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.
Enumerates the content types for the speaking of elements such as times, dates, and currency.
public enum class SayAs
public enum SayAs
type SayAs =
Public Enum SayAs
- Inheritance
Fields
Date | 3 | Speak a number sequence as a date. For example, speak "05/19/2004" or "19.5.2004" as "may nineteenth two thousand four". |
Day | 13 | Speak a number as the day in a date. For example, speak "3rd" as "third". |
DayMonth | 10 | Speak a number sequence as a day and month. For example, speak "12/05" as "May twelfth", and speak "05/12" as "December 5th". |
DayMonthYear | 4 | Speak a number sequence as a date including the day, month, and year. For example, speak "12/05/2004" as "May twelfth two thousand four". |
Month | 12 | Speak a word as a month. For example, speak "June" as "June". |
MonthDay | 9 | Speak a number sequence as a month and day. For example, speak "05/12" as "may twelfth", and speak "12/5" as "December 5th". |
MonthDayYear | 5 | Speak a number sequence as a date including the day, month, and year. For example, speak "12/05/2004" as "December fifth two thousand four". |
MonthYear | 8 | Speak a number sequence as a month and year. For example, speak "05/2004" as "May two thousand four". |
NumberCardinal | 2 | Speak a number as a cardinal number. For example, speak "3" as "three". |
NumberOrdinal | 1 | Speak a number as an ordinal number. For example, speak "3rd" as "third". |
SpellOut | 0 | Spell the word or phrase. For example, say "clock" as "C L O C K". |
Telephone | 17 | Speak a number sequence as a U.S. telephone number. For example, speak "(306) 555-1212" as "Area code three zero six five five five one two one two". |
Text | 18 | Speak the word or phrase as text. For example, speak "timeline" as "timeline". |
Time | 14 | Speak a number sequence as a time. For example, speak "9:45" as "nine forty-five", and speak "9:45am" as "nine forty-five A M". |
Time12 | 16 | Speak a number sequence as a time using the 12-hour clock. For example, speak "03:25" as "three twenty-five". |
Time24 | 15 | Speak a number sequence as a time using the 24-hour clock. For example, speak "18:00" as "eighteen hundred hours". |
Year | 11 | Speak a number as a year. For example, speak "1998" as "nineteen ninety-eight". |
YearMonth | 7 | Speak a number sequence as a year and month. For example, speak "2004/05" as "May two thousand four". |
YearMonthDay | 6 | Speak a number sequence as a date including the day, month, and year. For example, speak "2004/05/12" as "May twelfth two thousand four". |
Remarks
The AppendTextWithHint method uses members of the SayAs enumeration to specify the content type of the appended text, which the speech synthesis engine can use to inform its pronunciation.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈