public Word GetWord(int countBefore) { Word word = CurrentWord; Row row = Control.Caret.CurrentRow; int index = row.words.IndexOf(word); if (index >= countBefore) { return row.words[index - countBefore]; } else { return null; } return CurrentWord; }