ACPAddIn.ExtensionMode.removeRangeTextAndRepositionCursor C# (CSharp) Method

removeRangeTextAndRepositionCursor() public method

public removeRangeTextAndRepositionCursor ( Microsoft.Office.Interop.Word range ) : void
range Microsoft.Office.Interop.Word
return void
        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();
        }