How to examine a Word document for individual words.
This code snippet searches each word individually in a Word document.
The trick: you go through Word.Document.Words as Range objects
Code example for C #, VSTO
//--< @Loop: Words >--
foreach (Range word in _doc.Words)
string sWord = word.Text;
//--</ @Loop: Words >--
To go through an addin in C # you have to embed the following
using Word = Microsoft.Office.Interop.Word;