This is a migrated thread and some comments may be shown as answers.
TxtFormatProvider and \r symbol
1 Answer 4 Views
This is a migrated thread and some comments may be shown as answers.
Andrew Syrov
Top achievements
Rank 1
Andrew Syrov asked on 10 Jul 2013, 11:53 PM
It appears that \r symbol is filtered out by TxtFormatProvider, so I cannot find any element in element tree of RichTextBox control which has this symbol. Is there a way to preserve it? I'm trying to locate it using MoveToNextInline() from first document position and then looking into GetCurrentInlineBox().Text property.

Please help.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 15 Jul 2013, 12:30 PM
Hello Andrew,

The \n and \r symbols are not persisted when a plain text document is imported. They are converted to new paragraphs, so it will not be possible to locate them in the document after the import.

Regards,
Iva Toteva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Asked by
Andrew Syrov
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or