RichTextBox copy/paste doesn't work properly

1 posts, 0 answers
  1. Evgeny
    Evgeny avatar
    1 posts
    Member since:
    Nov 2012

    Posted 21 Nov 2012 Link to this post


    Following are details. I've got a bunch of custom objects which I'm using in RichTextBox. The control usually contains a couple of buttons and read only range with a span. In 4th version everything worked fine. I could get a copy of document from clipboard by calling ClipboardEx.GetDocument() and then loop through all of my objects and paste them correctly.

    But after moving to v.5 all I can get from clipboard is a bunch of spans and nothing more - all read only ranges, my buttons and so on disappear.

    Calling Selection.CreateDocumentFromSelection() basically does the same - as a result I get only a collection of spans.

    Any ideas?


Back to Top