AvalonStudio.TextEditor.TextEditor.RestoreCaretAndSelectionUndoAction.Undo C# (CSharp) Méthode

Undo() public méthode

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