在C#中怎么同时使富文本框中的字体加粗、倾斜并带下划线
发布网友
发布时间:2024-10-03 09:54
我来回答
共1个回答
热心网友
时间:2024-10-18 11:25
private void button1_Click(object sender, EventArgs e)
{
Font newFont;
newFont = new Font(this.richTextBox1.SelectionFont, this.richTextBox1.SelectionFont.Style | FontStyle.Bold | FontStyle.Underline | FontStyle.Italic );
this.richTextBox1.SelectionFont = newFont;
}
热心网友
时间:2024-10-18 11:25
private void button1_Click(object sender, EventArgs e)
{
Font newFont;
newFont = new Font(this.richTextBox1.SelectionFont, this.richTextBox1.SelectionFont.Style | FontStyle.Bold | FontStyle.Underline | FontStyle.Italic );
this.richTextBox1.SelectionFont = newFont;
}
热心网友
时间:2024-10-18 11:25
private void button1_Click(object sender, EventArgs e)
{
Font newFont;
newFont = new Font(this.richTextBox1.SelectionFont, this.richTextBox1.SelectionFont.Style | FontStyle.Bold | FontStyle.Underline | FontStyle.Italic );
this.richTextBox1.SelectionFont = newFont;
}