价值API在发送之前进行拼写检查 [英] API for value Spell check before send

查看:82
本文介绍了价值API在发送之前进行拼写检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在新邮件项目的工具栏中创建了一个按钮,按下该按钮可执行某些功能并操纵邮件正文。现在,当我在mailitem对象上使用send方法时,拼写检查不执行 尽管
控件"Allways"在发送之前检查拼写"正在上。方法SendDefault和Send之间似乎有区别,但在我的情况下,由于操作身体,我无法使用SendDefault。在我的情况下,我想在操纵身体之前执行
的拼写检查。是否有API告诉我"发送前拼写检查"框是否为"已检查,是否有API执行检查拼写。





解决方案

< blockquote>

Hello Ingmar,


您可以尝试使用提供
CheckSpelling
 方法。 T 他的方法返回一个布尔值,表示提供的参数是否拼写正确。请参阅
如何:以编程方式检查拼写在文档中
 了解更多信息。 


注意,Outlook使用Word作为电子邮件编辑器。因此,您可以使用Word对象模型来处理项主体。请阅读章节,了解有关
的更多信息。 17:使用项目主体
 文章。 


Hi,

I've created a button in the toolbar of the new mailitem and pressing that button executes some functions and manipulates the body of the mail. Now when I use the method send on the mailitem object the spell check doesn't executedespite the control "Allways check spelling before sending" being on. There seems to be a difference between the method SendDefault and Send but in my case I can not use the SendDefault because of the manipulation of the body. In my case I want to execute the spell check before I manipulate the body. Is there an API which tells me whether the box "Spell check before send" is checked and is there an API to execute the check spelling.


解决方案

Hello Ingmar,

You can try using the Word object model which provides the CheckSpelling method. This method returns a Boolean value that indicates whether the supplied parameter is spelled correctly. See How to: Programmatically Check Spelling in Documents for more information. 

Note, Outlook uses Word as an email editor. So, you can use the Word object model for dealing with item bodies. Read more about that in the Chapter 17: Working with Item Bodies article. 


这篇关于价值API在发送之前进行拼写检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆