Export (0) Print
Expand All

SpeakProgressEventArgs.CharacterCount Property

Gets the number of characters in the word that was spoken just before the event was raised.

Namespace:  System.Speech.Synthesis
Assembly:  System.Speech (in System.Speech.dll)

public int CharacterCount { get; internal set; }

Property Value

Type: System.Int32
Returns the number of characters in the word that was spoken just before the event was raised.

The SpeechSynthesizer normalizes numbers to the words that correspond to how the number will be spoken. For example, the synthesizer speaks the number “4003” as “four thousand three”. It raises a SpeakProgress event for each of the spoken words. However, the CharacterCount property for each of the three words is the same. It is the count of the characters in the number “4003” in the text of the prompt, in this case, four.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft