Method ChangeFontStyle
ChangeFontStyle(FontStyle, FontStyle, bool)
Turns on or off FontStyle element(s).
public static FontStyle ChangeFontStyle(FontStyle value, FontStyle element, bool add)
Parameters
value
FontStyleOriginal value.
element
FontStyleElement to add or remove.
add
booltrue
to add,false
to remove.
Returns
Examples
Style = Font.ChangeFontStyle(Style, FontStyle.Italic, value);