编程微软办公室词典 [英] programming microsoft office word dictionary
问题描述
我喜欢编写微软办公室词典"对象"。并显示包含某些字符的英文单词,例如以"tion"结尾。 //列表 I like to program microsoft office word dictionary "object" and display english words containing certain characters, say ending with "tion". // 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. 请参阅 http:// msdn .microsoft.com / zh-CN / library / bb214115.aspx 了解更多详情 Refer http://msdn.microsoft.com/en-us/library/bb214115.aspx for more details 谢谢, Thanks, 这篇关于编程微软办公室词典的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
我想我可以写一个程序,其中包含以下行(不起作用):
I supposed I could write a program having the following lines (which does not work):
推荐答案
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
);
Anita
Anita