public void autoCompleteDropDown_WordSelected(object sender, WordSelectedEventArgs e)
 {
     var index = GetIndexOfSpaceBackwards(SelectionStart - 1);
     SelectionLength = 0;
     Text = Text.Remove(index, SelectionStart - index);
     Text = Text.Insert(index, e.SelectedWord);
     SelectionStart = index + e.SelectedWord.Length;
 }
 private void autoCompleteDropDown_WordReplaced(object sender, WordSelectedEventArgs e)
 {
     ReplacePreviousWordWith(e.SelectedWord);
 }