Make font italic and bold

后端 未结 5 711
借酒劲吻你
借酒劲吻你 2020-12-05 22:59

How do you apply multiple font styles to text?

System.Drawing.Font MyFont = new System.Drawing.Font(
    thisTempLabel.LabelFont,
    ((float)thisTempLabel.f         


        
5条回答
  •  执笔经年
    2020-12-05 23:42

    FontStyle is a flag enum and therefore you can set multiple styles by:

    FontStyle.Bold | FontStyle.Italic
    

提交回复
热议问题