public Word FindLeftWordByPatternListName(string PatternListName, Word StartWord, bool IgnoreStartWord)
{
int i = StartWord.Index;
if (IgnoreStartWord)
i--;
while (i >= 0)
{
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;
}