private void InsertIntoSciDocument(string text) { int selectionLength; selectionLength = document.Selection.Length; string query = selectionLength == 0 ? document.Text : document.Selection.Text; if (selectionLength == 0) { document.InsertText("\n" + text);//Logic.mMisc.sqlhereWebservice(query); } else { document.Selection.Text = text; } }
public void AddFunctionComment() { _editor.InsertText(_editor.CurrentPosition, FUNCTRION_COMMENT); }