Method GetStyle
GetStyle(IFontHandler)
Determines the combined FontStyle based on the attributes of the specified font.
public static FontStyle GetStyle(IFontHandler font)
Parameters
fontIFontHandlerAn object implementing IFontHandler that provides font attributes such as weight, italic, underline, and strikethrough.
Returns
- FontStyle
A FontStyle value representing the combination of font styles (e.g., Bold, Italic, etc.) that are applicable to the specified font. Returns Regular if no specific styles are applied.