TxtFormatProvider and \r symbol

2 posts, 0 answers
  1. Andrew Syrov
    Andrew Syrov avatar
    2 posts
    Member since:
    Jan 2010

    Posted 10 Jul 2013 Link to this post

    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.
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 15 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top