 | StyleBasicStylesFont Method |
Gets a style with a user defined font
Namespace: PicoXLSXAssembly: PicoXLSX (in PicoXLSX.dll) Version: 3.4.2+f55916d49ef2baa43fc7dc8f5c7d751a77c50baf
Syntaxpublic static Style Font(
string fontName,
int fontSize = 11,
bool isBold = false,
bool isItalic = false
)
Parameters
- fontName String
- Name of the font.
- fontSize Int32 (Optional)
- Size of the font in points (optional; default 11).
- isBold Boolean (Optional)
- If true, the font will be bold (optional; default false).
- isItalic Boolean (Optional)
- If true, the font will be italic (optional; default false).
Return Value
StyleStyle with font definition.
See Also