This is a migrated thread and some comments may be shown as answers.

RichTextBox copy/paste doesn't work properly

0 Answers 73 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Evgeny
Top achievements
Rank 1
Evgeny asked on 21 Nov 2012, 12:46 PM

Hello,

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?

Thanks.

No answers yet. Maybe you can help?

Tags
RichTextBox
Asked by
Evgeny
Top achievements
Rank 1
Share this question
or