title: SynonymInfo[] For Microsoft.Office.Interop.Word in C#
body: <p>In C# i using </p>
  
  <pre><code>using word = Microsoft.Office.Interop.Word;
  </code></pre>
  
  <p>For get a Synonym for words by using this code</p>
  
  <pre><code> var app = new word.Application();
   var infosyn = app.SynonymInfo[Wtext[Op + 1].ToString(), word.WdLanguageID.wdArabic];
   foreach (var item in infosyn.MeaningList as Array)
       {
  
                 listBox1.Items.Add(item.ToString());
  
       }
  </code></pre>
  
  <p>Image <a href="http://im68.gulfup.com/2m3qRO.png" rel="nofollow">here</a></p>
  
  <p>My Issue is i got only the meaning list ( What is red boxes in image), but i want all words like in the image ( words in red boxes and blue arrows, The whole list).
  Note: i use Meaninglist, RelatedWordList and it's not working and make loops in loop take a each synonym words and check their synonyms. Like This</p>
  
  <pre><code>var apps = new words.Application();
  var infosyns = apps.SynonymInfo[item.ToString(), words.WdLanguageID.wdArabic] ;
  foreach (var iitem in infosyns.MeaningList as Array)
  {
  
  listBox1.Items.Add(iitem.ToString());
  
  var appss = new wordss.Application();
  var infosynss = appss.SynonymInfo[iitem.ToString(),wordss.WdLanguageID.wdArabic] ;
  foreach (var iiitem in infosyns.MeaningList as Array)
  {
  
  listBox1.Items.Add(iiitem.ToString());
  
  }
  
  }
  </code></pre>
  
  <p>Image <a href="http://im68.gulfup.com/2m3qRO.png" rel="nofollow">here</a>     </p>