VSTO 2007 for Outlook中的RichTextBox复制或SaveFile不适用于所有图像 [英] RichTextBox Copy or SaveFile from VSTO 2007 for Outlook does not work with all images
本文介绍了VSTO 2007 for Outlook中的RichTextBox复制或SaveFile不适用于所有图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
你好,
你之前检查了SelectionType属性吗?你复制或保存图像?我发现如果我们从其他应用程序粘贴一个图像,SelectionType将为Empty,这意味着在RichTextBox中我们没有选择任何东西,解决这个问题只需调用RichTextBox.SelectAll()方法。
感谢
Hi,
解决方案
Hello,
Have you checked the SelectionType property before you copy or save the image?I've found that if we paste a image from other application the SelectionType will be Empty, which means in RichTextBox we selected nothing, to resolve this just call RichTextBox.SelectAll() method.
Thanks
这篇关于VSTO 2007 for Outlook中的RichTextBox复制或SaveFile不适用于所有图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文