Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| // <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> |