C# FontStyle
c#的字体风格FontStyle怎样才能同时是bold,Underline,Strikeout?
同时具有这样的属性是这样的:
FontStyle style = FontStyle.Regular;
style |= FontStyle.Bold;
style |= FontStyle.Italic;
如果是去掉某一种的话是:
style-=FontStyle.Bold;
同时具有这样的属性是这样的:
FontStyle style = FontStyle.Regular;
style |= FontStyle.Bold;
style |= FontStyle.Italic;
如果是去掉某一种的话是:
style-=FontStyle.Bold;