Factory class with the most important predefined styles.
More...
|
| static Style | ColorizedText (string rgb) |
| | Gets a style to colorize the text of a cell.
|
| static Style | ColorizedBackground (string rgb) |
| | Gets a style to colorize the background of a cell.
|
| static Style | Font (string fontName, float fontSize=11f, bool isBold=false, bool isItalic=false) |
| | Gets a style with a user defined font.
|
Factory class with the most important predefined styles.
Definition at line 20 of file BasicStyles.cs.
◆ ColorizedBackground()
| Style NanoXLSX.Styles.BasicStyles.ColorizedBackground |
( |
string | rgb | ) |
|
|
static |
Gets a style to colorize the background of a cell.
- Parameters
-
| rgb | RGB code in hex format (6 characters, e.g. FF00AC). Alpha will be set to full opacity (FF) |
- Returns
- Style with background color definition
- Exceptions
-
Definition at line 264 of file BasicStyles.cs.
◆ ColorizedText()
| Style NanoXLSX.Styles.BasicStyles.ColorizedText |
( |
string | rgb | ) |
|
|
static |
Gets a style to colorize the text of a cell.
- Parameters
-
| rgb | RGB code in hex format (6 characters, e.g. FF00AC). Alpha will be set to full opacity (FF) |
- Returns
- Style with font color definition
- Exceptions
-
Definition at line 250 of file BasicStyles.cs.
◆ Font()
| Style NanoXLSX.Styles.BasicStyles.Font |
( |
string | fontName, |
|
|
float | fontSize = 11f, |
|
|
bool | isBold = false, |
|
|
bool | isItalic = false ) |
|
static |
Gets a style with a user defined font.
- Parameters
-
| fontName | Name of the font |
| fontSize | Size of the font in points (optional; default 11) |
| isBold | If true, the font will be bold (optional; default false) |
| isItalic | If true, the font will be italic (optional; default false) |
- Returns
- Style with font definition
Definition at line 283 of file BasicStyles.cs.
◆ Bold
| Style NanoXLSX.Styles.BasicStyles.Bold |
|
staticget |
◆ BoldItalic
| Style NanoXLSX.Styles.BasicStyles.BoldItalic |
|
staticget |
◆ BorderFrame
| Style NanoXLSX.Styles.BasicStyles.BorderFrame |
|
staticget |
◆ BorderFrameHeader
| Style NanoXLSX.Styles.BasicStyles.BorderFrameHeader |
|
staticget |
Gets the border style for header cells.
Definition at line 84 of file BasicStyles.cs.
◆ DateFormat
| Style NanoXLSX.Styles.BasicStyles.DateFormat |
|
staticget |
◆ DottedFill_0_125
| Style NanoXLSX.Styles.BasicStyles.DottedFill_0_125 |
|
staticget |
Gets the special pattern fill style (for compatibility).
Definition at line 97 of file BasicStyles.cs.
◆ DoubleUnderline
| Style NanoXLSX.Styles.BasicStyles.DoubleUnderline |
|
staticget |
◆ Italic
| Style NanoXLSX.Styles.BasicStyles.Italic |
|
staticget |
◆ MergeCellStyle
| Style NanoXLSX.Styles.BasicStyles.MergeCellStyle |
|
staticget |
Gets the style used when merging cells.
Definition at line 104 of file BasicStyles.cs.
◆ RoundFormat
| Style NanoXLSX.Styles.BasicStyles.RoundFormat |
|
staticget |
◆ Strike
| Style NanoXLSX.Styles.BasicStyles.Strike |
|
staticget |
◆ TimeFormat
| Style NanoXLSX.Styles.BasicStyles.TimeFormat |
|
staticget |
◆ Underline
| Style NanoXLSX.Styles.BasicStyles.Underline |
|
staticget |
The documentation for this class was generated from the following file: