编程微软办公室词典 [英] programming microsoft office word dictionary

查看:99
本文介绍了编程微软办公室词典的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢编写微软办公室词典"对象"。并显示包含某些字符的英文单词,例如以"tion"结尾。

我想我可以写一个程序,其中包含以下行(不起作用):


//列表

I like to program microsoft office word dictionary "object" and display english words containing certain characters, say ending with "tion".

I supposed I could write a program having the following lines (which does not work):

// List

 

< string > words = officeDictionary。 ToList();

 

<string> words = officeDictionary. ToList();

 

foreach string str 字词)

{

foreach(string str in words)

{

 

if (str.EndsWith( "" ))

{

if(str.EndsWith("tion"))

{

 

控制台 .WriteLine(STR);

}

Console.WriteLine(str);

}

}

推荐答案

感谢您的查询。

您可以在这里使用拼写建议API   

you can make use of spelling suggestions API here.  

SpellingSuggestions suggestions = this.application.GetSpellingSuggestions(
word,
ref nothing,
ref nothing,
ref (object)objLanguage,
ref nothing,
ref nothing,
ref nothing,
ref nothing,
ref nothing,
ref nothing,
ref nothing,
ref nothing,
ref nothing,
ref nothing
);

请参阅 http:// msdn .microsoft.com / zh-CN / library / bb214115.aspx  了解更多详情

Refer http://msdn.microsoft.com/en-us/library/bb214115.aspx for more details

谢谢,
Anita

Thanks,
Anita


这篇关于编程微软办公室词典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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