if (oldFont.Underline)
newFont = new Font(oldFont,oldFont.Style & ~FontStyle.Underline);
else
newFont = new Font(oldFont,oldFont.Style | FontStyle.Underline);
this.richTextBox1.SelectionFont = newFont;
this.richTextBox1
.Focus();
}
//取消或置为居中
private void button5_Click(object sender, System.EventArgs e)
{
if (this.richTextBox1.SelectionAlignment == HorizontalAlignment.Center)
this.richTextBox1.SelectionAlignment = HorizontalAlignment.Left;
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-29694-6.html
我进它跑
只能说呵呵