12

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

1 Answers1

33

How about this?

string text = new TextRange(FlowDoc.ContentStart, FlowDoc.ContentEnd).Text;
H.B.
  • 166,899
  • 29
  • 327
  • 400