public Word FindRightWordByPatternListName(string PatternListName, Word StartWord, bool IgnoreStartWord)
{
int i = StartWord.Index;
if (IgnoreStartWord)
i++;
while (i < words.Count)
{
Word w = this[i];
if (w.Pattern != null)
{
if (w.Pattern.Parent != null)
{
if (w.Pattern.Parent.Name == PatternListName && w.Type != WordType.Space &&
w.Type != WordType.Tab)
{
return w;
}
}
}
i++;
}
return null;
}