SpeakProgressEventArgs.CharacterCount 屬性

定義

取得在引發事件之前剛說出的文字中的字元數。Gets the number of characters in the word that was spoken just before the event was raised.

public:
 property int CharacterCount { int get(); };
public int CharacterCount { get; }
member this.CharacterCount : int
Public ReadOnly Property CharacterCount As Integer

屬性值

傳回在引發事件之前剛說出的文字中的字元數。Returns the number of characters in the word that was spoken just before the event was raised.

備註

SpeechSynthesizer標準化的數位會對應到數位的讀出方式。The SpeechSynthesizer normalizes numbers to the words that correspond to how the number will be spoken. 例如, 合成器會將數位 "4003" 說為 "4003"。For example, the synthesizer speaks the number "4003" as "four thousand three". 它會針對SpeakProgress每個說出的單字引發事件。It raises a SpeakProgress event for each of the spoken words. 不過, CharacterCount這三個單字的屬性都相同。However, the CharacterCount property for each of the three words is the same. 這是提示文字中數位 "4003" 的字元計數, 在此案例中為四。It is the count of the characters in the number "4003" in the text of the prompt, in this case, four.

適用於