code_junkie

Are there any FlowDocument diff viewers for WPF?

Nov 12th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // Create a TextRange around the entire document.
  2. TextRange documentTextRange = new TextRange(myFlowDoc.ContentStart, myFlowDoc.ContentEnd);
  3.  
  4. // Save it. Note that it will not respect current stream position;
  5. // it'll assume that it gets the entire stream.
  6. documentTextRange.Save(myStream, DataFormats.Xaml);
Add Comment
Please, Sign In to add comment