Im trying to use Synonyms in my program. I added the Ref to Word's Interop. Unfortunately, when I try to look for get_SynonymInfo function, I do not have that one in my options.
Does anyone know what the problem is?
Im trying to use Synonyms in my program. I added the Ref to Word's Interop. Unfortunately, when I try to look for get_SynonymInfo function, I do not have that one in my options.
Does anyone know what the problem is?
Try this example:
Add using:
using Microsoft.Office.Interop.Word;
Add the following code to a method:
var word = new Microsoft.Office.Interop.Word.Application();
string simpleWord = "hello";
SynonymInfo s = word.SynonymInfo[simpleWord];
foreach (var meaning in s.MeaningList as Array)
{
MessageBox.Show((string)meaning);
}
You should get "ciao" as output