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

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

public RestoreCaretAndSelectionUndoAction ( TextEditor editor ) : System
editor TextEditor
Результат System
            public RestoreCaretAndSelectionUndoAction(TextEditor editor)
            {
                textAreaReference = new WeakReference(editor);
                // Just save the old caret position, no need to validate here.
                // If we restore it, we'll validate it anyways.
                caretPosition = editor.CaretIndex;
                selectionStart = editor.SelectionStart;
                selectionEnd = editor.SelectionEnd;
            }
TextEditor.RestoreCaretAndSelectionUndoAction