예제 #1
0
        private void CodeEditorServiceRequestSetCaret(object sender, SetCaretEventArgs e)
        {
            if (e.DocumentFile != ViewModel.DocumentFile) { return; }

            var offset = codeEditor.Document.GetOffset(new TextLocation(e.Line + 1, e.Column + 1));
            codeEditor.TextArea.Caret.Offset = offset;
            codeEditor.Focus();
        }
 protected virtual void OnRequestSetCaret(SetCaretEventArgs e)
 {
     RequestSetCaret?.Invoke(this, e);
 }
예제 #3
0
 protected virtual void OnRequestSetCaret(SetCaretEventArgs e)
 {
     RequestSetCaret?.Invoke(this, e);
 }