c#richtextBox 字体加粗

private void Button2_Click(System.Object sender, System.EventArgs e)
{

    if (this.BackColor != SystemColors.ControlDark)
    {
        this.BackColor = SystemColors.ControlDark;
    }
    if (!(this.Font.Bold))
    {
        this.Font = new Font(this.Font, FontStyle.Bold);
    }
}

 

posted @ 2017-12-07 00:26  dafengchui  阅读(2309)  评论(0编辑  收藏  举报