SpeechSynthesizer.StateChanged 事件

定義

變更 SpeechSynthesizer 的狀態時引發。Raised when the state of the SpeechSynthesizer changes.

public:
 event EventHandler<System::Speech::Synthesis::StateChangedEventArgs ^> ^ StateChanged;
public event EventHandler<System.Speech.Synthesis.StateChangedEventArgs> StateChanged;
member this.StateChanged : EventHandler<System.Speech.Synthesis.StateChangedEventArgs> 
Public Custom Event StateChanged As EventHandler(Of StateChangedEventArgs) 

備註

SpeechSynthesizer其說話State變更時, 會引發這個事件。The SpeechSynthesizer raises this event when its speaking State changes. 如需與事件相關聯之資料的範例和詳細資訊, StateChangedEventArgs請參閱。For an example and more information about data associated with the event, see StateChangedEventArgs.

若要暫停和繼續語音合成, 請Pause使用Resume和方法。To pause and resume speech synthesis, use the Pause and Resume methods.

適用於