#include <XLStyles_Fonts.hpp>
◆ XLFont() [1/4]
◆ XLFont() [2/4]
| XLFont::XLFont |
( |
const XMLNode & | node | ) |
|
|
explicit |
Constructor. New items should only be created through an XLStyles object.
- Parameters
-
| node | An XMLNode object with the fonts XMLNode. If no input is provided, a null node is used. |
◆ XLFont() [3/4]
| XLFont::XLFont |
( |
const XLFont & | other | ) |
|
Copy Constructor.
- Parameters
-
| other | Object to be copied. |
◆ XLFont() [4/4]
| OpenXLSX::XLFont::XLFont |
( |
XLFont && | other | ) |
|
|
defaultnoexcept |
Move Constructor.
- Parameters
-
◆ ~XLFont()
◆ bold()
| bool XLFont::bold |
( |
| ) |
const |
Get the font bold status.
- Returns
- true = bold, false = not bold
◆ condense()
| bool XLFont::condense |
( |
| ) |
const |
Get the condense status.
- Returns
- true if the font is condensed
◆ extend()
| bool XLFont::extend |
( |
| ) |
const |
Get the extend status.
- Returns
- true if the font is extended (spacing between characters is increased)
◆ fontCharset()
| size_t XLFont::fontCharset |
( |
| ) |
const |
Get the font charset.
- Returns
- The font charset id
◆ fontColor()
| XLColor XLFont::fontColor |
( |
| ) |
const |
Get the font color.
- Returns
- The font color
◆ fontFamily()
| size_t XLFont::fontFamily |
( |
| ) |
const |
Get the font family.
- Returns
- The font family id
◆ fontName()
| std::string XLFont::fontName |
( |
| ) |
const |
Get the font name.
- Returns
- The font name
◆ fontSize()
| size_t XLFont::fontSize |
( |
| ) |
const |
Get the font size.
- Returns
- The font size
◆ italic()
| bool XLFont::italic |
( |
| ) |
const |
Get the font italic (cursive) status.
- Returns
- true = italic, false = not italice
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to the lhs object.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to lhs object.
◆ outline()
| bool XLFont::outline |
( |
| ) |
const |
Get the outline status.
- Returns
- true if the font is formatted with an outline effect (per ECMA-376 legacy macOS font styling)
◆ scheme()
◆ setBold()
| XLFont & XLFont::setBold |
( |
bool | set = true | ) |
|
◆ setCondense()
| XLFont & XLFont::setCondense |
( |
bool | set = true | ) |
|
◆ setExtend()
| XLFont & XLFont::setExtend |
( |
bool | set = true | ) |
|
◆ setFontCharset()
| XLFont & XLFont::setFontCharset |
( |
size_t | newCharset | ) |
|
◆ setFontColor()
◆ setFontFamily()
| XLFont & XLFont::setFontFamily |
( |
size_t | newFamily | ) |
|
◆ setFontName()
| XLFont & XLFont::setFontName |
( |
std::string_view | newName | ) |
|
Setter functions for style parameters.
- Parameters
-
- Returns
- true for success, false for failure
◆ setFontSize()
| XLFont & XLFont::setFontSize |
( |
size_t | newSize | ) |
|
◆ setItalic()
| XLFont & XLFont::setItalic |
( |
bool | set = true | ) |
|
◆ setOutline()
| XLFont & XLFont::setOutline |
( |
bool | set = true | ) |
|
◆ setScheme()
◆ setShadow()
| XLFont & XLFont::setShadow |
( |
bool | set = true | ) |
|
◆ setStrikethrough()
| XLFont & XLFont::setStrikethrough |
( |
bool | set = true | ) |
|
◆ setUnderline()
◆ setVertAlign()
◆ shadow()
| bool XLFont::shadow |
( |
| ) |
const |
Get the shadow status.
- Returns
- true if the font has a shadow effect
◆ strikethrough()
| bool XLFont::strikethrough |
( |
| ) |
const |
Get the font strikethrough status.
- Returns
- true = strikethrough, false = no strikethrough
◆ summary()
| std::string XLFont::summary |
( |
| ) |
const |
Return a string summary of the font properties.
- Returns
- string with info about the font object
◆ underline()
◆ vertAlign()
◆ XLFonts
◆ XLStyles
The documentation for this class was generated from the following files: