If I want to set my Font I can use
new Font=("Times New Roman", 12, Drawing.FontStyle.Bold)
Instead of Bold, I can use Italic, Regular or Underline.
But I want to make use of Bold and Italic at the same time.
How can I do this?
The FontStyle
enumeration is a flags enumeration, so you can combine values (using the Or
operator in VB.NET, |
in c#):
new Font("Times New Roman", 12, Drawing.FontStyle.Bold Or Drawing.FontStyle.Italic)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With