AvalonStudio.TextEditor.TextEditor.RestoreCaretAndSelectionUndoAction.Undo C# (CSharp) Метод

Undo() публичный Метод

public Undo ( ) : void
Результат void
            public void Undo()
            {
                var textEditor = (TextEditor)textAreaReference.Target;
                if (textEditor != null)
                {
                    textEditor.CaretIndex = caretPosition;
                    textEditor.SelectionStart = selectionStart;
                    textEditor.SelectionEnd = selectionEnd;
                }
            }
TextEditor.RestoreCaretAndSelectionUndoAction