![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Replaces the current content in a PromptBuilder object with a string.
Namespace:
Microsoft.Speech.Synthesis
Assembly:
Microsoft.Speech (in Microsoft.Speech.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub SetText ( _ textToSpeak As String _ ) |
Visual Basic (Usage) |
---|
Dim instance As PromptBuilder Dim textToSpeak As String instance.SetText(textToSpeak) |
C# |
---|
public void SetText( string textToSpeak ) |
Parameters
- textToSpeak
- Type: System..::..String
The new content for the PromptBuilder object.
Remarks
This method calls ClearContent()()()() and then AppendText(String), using textToSpeak as the string.