BibPort: Creating  Bibliographic References
by Matthew Curry and Jeffrey G. Gray

Listing One

Word.Document doc = Globals.ThisAddIn.Application.ActiveDocument; 
while (doc.Words[index].Underline == 
                         word.WdUnderline.wdUnderlineSingle) 
{ 
    if (doc.Words[index].Text.Trim() == "." &&
             doc.Words[index + 1].Underline != 
             Word.WdUnderline.wdUnderlineSingle)
         break; 
    title += doc.Words[index++].Text;
} 
if (title == "") return false; 



1


