public Word FindRightWordByPatternList(PatternList PatternList, 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 == PatternList && w.Type != WordType.Space && w.Type != WordType.Tab)
{
return w;
}
}
}
i++;
}
return null;
}