Share via


PromptBuilder.EndParagraph Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Ends a paragraph in a PromptBuilder.

Namespace: Microsoft.SpeechServer.Synthesis
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
Public Sub EndParagraph
public void EndParagraph ()

Example

using Microsoft.SpeechServer.Synthesis;
. . .
        private void statementActivity1_TurnStarting(object sender, TurnStartingEventArgs e)
        {
            PromptBuilder pb = new PromptBuilder();
            pb.StartParagraph();

            pb.StartSentence();
            pb.AppendText("Starting a paragraph. ");
            pb.EndSentence();

            pb.StartSentence();
            pb.AppendText("Adding a sentence. ");
            pb.EndSentence();

            pb.StartSentence();
            pb.AppendText("Adding another sentence. ");
            pb.EndSentence();

            pb.EndParagraph();

            statementActivity1.MainPrompt.AppendPromptBuilder(pb);
        }

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Windows Server 2003

See Also

Reference

PromptBuilder Class
PromptBuilder Members
Microsoft.SpeechServer.Synthesis Namespace