开发者

Is it possible to copy format from other application into Silverlight RichTextBox?

Now I'm playing with the RichTextBox in Silverlight. I'm trying to copy some content from other application like Office Word. However all I can get is the pain TEXT without any format. Is possible to copy the content from word or PDF file with the format like 开发者_开发百科font-size, font-color?

Thanks!


Unfortunately, in Silverlight 4, there's a limitation on the data you can get from the clipboard.

You are allowed to get the plain text from the clipboard but not the raw data itself (ex: images, rich text formated text, etc).

Until a new version of Silverlight allow you to get the raw data from the clipboard, I'm afraid it won't be possible, even with a third party RichTextBox.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜