AvalonStudio.TextEditor.TextEditor.RestoreCaretAndSelectionUndoAction.Undo C# (CSharp) Method

Undo() public method

public Undo ( ) : void
return void
            public void Undo()
            {
                var textEditor = (TextEditor)textAreaReference.Target;
                if (textEditor != null)
                {
                    textEditor.CaretIndex = caretPosition;
                    textEditor.SelectionStart = selectionStart;
                    textEditor.SelectionEnd = selectionEnd;
                }
            }
TextEditor.RestoreCaretAndSelectionUndoAction