Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 728 Bytes
// <SnippetParagraphCodeOnlyExampleWholePage>
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
namespace SDKSample
{
public partial class ParagraphExample : Page
{
public ParagraphExample()
{
// Create paragraph with some text.
Paragraph myParagraph = new Paragraph();
myParagraph.Inlines.Add(new Run("Some paragraph text."));
// Create a FlowDocument and add the paragraph to it.
FlowDocument myFlowDocument = new FlowDocument();
myFlowDocument.Blocks.Add(myParagraph);
this.Content = myFlowDocument;
}
}
}
// </SnippetParagraphCodeOnlyExampleWholePage>