public void removeRangeTextAndRepositionCursor(Word.Range range)
{
range.Delete();
// Reposition the cursor to the end of the sentence
int position = extensionRange.End;
Globals.ThisAddIn.Application.Selection.SetRange(position, position);
highlight(extensionRange);
scrollToRange(extensionRange);
isRetrieving = 1;
if (extensionPos == -1)
resetExtensionMode();
}