Wpf – Convert FlowDocument to simple text

flowdocumentwpf

what is the most simple and elegant way how convert flowdocument to simple text?

Best Answer

How about this?

string text = new TextRange(FlowDoc.ContentStart, FlowDoc.ContentEnd).Text;
Related Topic