There are only Italic, Normal, Oblique. But I need to set my FontStyle Bold.
Bold isn't a FontStyle. It is a font weight. See this and this links.
For example:
control.FontWeight = FontWeights.Bold;
Update: Of course this answer is for XAML based frameworks (WPF, Silverlight, WinPhone, WinRT). In other frameworks bold can be style or something else.
myTextBox.Font =
new Font(myTextBox.Font, outputTextBox.Font.Style | FontStyle.Bold);
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