How to determine after which character the string ends?
This is the Paragraph-> Inlines of the Run type (this is not a regular line):
12 34 These (above) values will take completeTextRange.Text. But write in one line 1234
foreach (Block r in text_rich.Document.Blocks) { if (r is Paragraph) { foreach (Inline i in ((Paragraph)r).Inlines) { if (i is Run) { var completeTextRange = new TextRange(i.ContentStart, i.ContentEnd); res.Append(completeTextRange.Text);