Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create a TextRange around the entire document.
- TextRange documentTextRange = new TextRange(myFlowDoc.ContentStart, myFlowDoc.ContentEnd);
- // Save it. Note that it will not respect current stream position;
- // it'll assume that it gets the entire stream.
- documentTextRange.Save(myStream, DataFormats.Xaml);
Add Comment
Please, Sign In to add comment