How to insert inline content from one FlowDocument into another?
- by Robert Rossney
I'm building an application that needs to allow a user to insert text from one RichTextBox at the current caret position in another one. I spent a lot of time screwing around with the FlowDocument's object model before running across this technique - source and target are both FlowDocuments:
using (MemoryStream ms = new MemoryStream())
{
…