mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 00:56:03 +02:00
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
1.6 KiB
1.6 KiB
title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
| title | ms.date | dev_langs | helpviewer_keywords | ms.assetid | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| How to: Save, Load, and Print RichTextBox Content | 03/30/2017 |
|
|
ffb113d3-c68a-47ca-8ac0-882283f38326 |
How to: Save, Load, and Print RichTextBox Content
The following example shows how to save content of a xref:System.Windows.Controls.RichTextBox to a file, load that content back into the xref:System.Windows.Controls.RichTextBox, and print the contents.
Example
Below is the markup for the example.
[!code-xamlRichTextBoxMiscSnippets_snip#SaveLoadPrintRTBExampleWholePage]
Example
Below is the code behind for the example.
[!code-csharpRichTextBoxMiscSnippets_snip#SaveLoadPrintRTBCodeExampleWholePage] [!code-vbRichTextBoxMiscSnippets_snip#SaveLoadPrintRTBCodeExampleWholePage]