private void 转为小写ToolStripMenuItem_Click(object sender, EventArgs e) { MarkdownEditor me = meditorManager.GetCurrEditor(); if (me == null) { return; } me.GetTextBox().SelectedText = me.GetTextBox().SelectedText.ToLower(); }
private void PreviewHtml() { MarkdownEditor meditor = meditorManager.SetStyle(); if (meditor == null) { return; } this.toolStripStatusLabel1.Text = " 正在转换。。。。 "; if (filetypeConvert(meditor)) { if (isLeft) { if (splitContainer1.Panel2Collapsed) { splitContainer1.Panel2Collapsed = false; } } else { if (splitContainer1.Panel1Collapsed) { splitContainer1.Panel1Collapsed = false; } } } tabBrowser.Text = meditor.MarkdownPage.Text; this.toolStripStatusLabel1.Text = "当前文档:" + meditor.FileName; //tabControl1.Focus(); meditor.GetTextBox().Focus(); }
private void 转到行ToolStripMenuItem_Click(object sender, EventArgs e) { MarkdownEditor me = meditorManager.GetCurrEditor(); if (me == null) { return; } if (me.GetTextBox().Document.LineCount > 0) { //Show the dialog GoToLineDialog gtl = new GoToLineDialog(me.GetTextBox()); gtl.ShowDialog(); } }
public TextEditor GetTextBox() { MarkdownEditor meditor = GetCurrEditor(); if (meditor == null) { return(null); } return(meditor.GetTextBox()); }