![]() |
NanoXLSX.Formatting 3.0.0
|
Builder for creating inline Styles.Font styles with a fluent API. More...
Public Member Functions | |
| InlineStyleBuilder | FontName (string fontName) |
| Sets the font name for the inline style. | |
| InlineStyleBuilder | Size (float size) |
| Sets the font size for the inline style. | |
| InlineStyleBuilder | Bold (bool bold=true) |
| Sets whether the font is bold. | |
| InlineStyleBuilder | Italic (bool italic=true) |
| Sets whether the font is italic. | |
| InlineStyleBuilder | Strikethrough (bool strikethrough=true) |
| Sets whether the font has strikethrough. | |
| InlineStyleBuilder | Underline (Font.UnderlineValue style=Styles.Font.UnderlineValue.Single) |
| Sets the underline style for the font. | |
| InlineStyleBuilder | Color (Color color) |
| Sets the font color. | |
| InlineStyleBuilder | ColorArgb (string argb) |
| Sets the font color from an RGB or ARGB hex string. | |
| InlineStyleBuilder | ColorTheme (Theme.ColorSchemeElement theme, double tint=0.0) |
| Sets the font color from a theme color. | |
| InlineStyleBuilder | ColorIndexed (IndexedColor.Value indexed) |
| Sets the font color from an indexed color value. | |
| InlineStyleBuilder | ColorIndexed (int colorIndex) |
| Sets the font color from an indexed color value, using the index number (0-65). | |
| InlineStyleBuilder | VerticalAlign (Font.VerticalTextAlignValue alignment) |
| Sets the vertical alignment for the font. | |
| InlineStyleBuilder | Superscript () |
| Sets the font to superscript. | |
| InlineStyleBuilder | Subscript () |
| Sets the font to subscript. | |
| InlineStyleBuilder | Outline (bool outline=true) |
| Sets whether the font has outline. | |
| InlineStyleBuilder | Shadow (bool shadow=true) |
| Sets whether the font has shadow. | |
| InlineStyleBuilder | Condense (bool condense=true) |
| Sets whether the font is condensed. | |
| InlineStyleBuilder | Extend (bool extend=true) |
| Sets whether the font is extended. | |
| InlineStyleBuilder | Charset (Font.CharsetValue charset) |
| Sets the font charset. | |
| InlineStyleBuilder | Family (Font.FontFamilyValue family) |
| Sets the font family. | |
| InlineStyleBuilder | Scheme (Font.SchemeValue scheme) |
| Sets the font scheme. | |
| Font | Build (bool reset=true) |
| Builds the inline style instance. | |
Builder for creating inline Styles.Font styles with a fluent API.
Definition at line 17 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Bold | ( | bool | bold = true | ) |
Sets whether the font is bold.
| bold | Bold if true (default) |
Definition at line 48 of file InlineStyleBuilder.cs.
| Font NanoXLSX.Extensions.InlineStyleBuilder.Build | ( | bool | reset = true | ) |
Builds the inline style instance.
| reset | If true, resets the builder after building (default = true) |
Definition at line 257 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Charset | ( | Font.CharsetValue | charset | ) |
Sets the font charset.
| charset | Font charset value |
Definition at line 224 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Color | ( | Color | color | ) |
Sets the font color.
| color | Font color |
Definition at line 92 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.ColorArgb | ( | string | argb | ) |
Sets the font color from an RGB or ARGB hex string.
| argb | RGB value (6 characters) or ARGB (8 characters) with optional, leading # |
Definition at line 104 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.ColorIndexed | ( | IndexedColor.Value | indexed | ) |
Sets the font color from an indexed color value.
| indexed | Indexed color value |
Definition at line 127 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.ColorIndexed | ( | int | colorIndex | ) |
Sets the font color from an indexed color value, using the index number (0-65).
| colorIndex | Indexed color value |
Definition at line 138 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.ColorTheme | ( | Theme.ColorSchemeElement | theme, |
| double | tint = 0::0 ) |
Sets the font color from a theme color.
| theme | Color scheme element |
| tint | Optional tint value (-1.0 to 1.0, default = 0.0) |
Definition at line 116 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Condense | ( | bool | condense = true | ) |
Sets whether the font is condensed.
| condense | Is condensed if true (default) |
Definition at line 202 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Extend | ( | bool | extend = true | ) |
Sets whether the font is extended.
| extend | Is extended if true (default) |
Definition at line 213 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Family | ( | Font.FontFamilyValue | family | ) |
Sets the font family.
| family | Font family value |
Definition at line 235 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.FontName | ( | string | fontName | ) |
Sets the font name for the inline style.
| fontName | Font name |
Definition at line 26 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Italic | ( | bool | italic = true | ) |
Sets whether the font is italic.
| italic | Italic if true (default) |
Definition at line 59 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Outline | ( | bool | outline = true | ) |
Sets whether the font has outline.
| outline | Has an outline if true (default) |
Definition at line 180 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Scheme | ( | Font.SchemeValue | scheme | ) |
Sets the font scheme.
| scheme | Font scheme value |
Definition at line 246 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Shadow | ( | bool | shadow = true | ) |
Sets whether the font has shadow.
| shadow | Has a shadow if true (default) |
Definition at line 191 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Size | ( | float | size | ) |
Sets the font size for the inline style.
| size | Font size in points |
Definition at line 37 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Strikethrough | ( | bool | strikethrough = true | ) |
Sets whether the font has strikethrough.
| strikethrough | Has strikethrough if true (default) |
Definition at line 70 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Subscript | ( | ) |
Sets the font to subscript.
Definition at line 169 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Superscript | ( | ) |
Sets the font to superscript.
Definition at line 159 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.Underline | ( | Font.UnderlineValue | style = Styles::Font::UnderlineValue::Single | ) |
Sets the underline style for the font.
| style | Underline style |
Definition at line 81 of file InlineStyleBuilder.cs.
| InlineStyleBuilder NanoXLSX.Extensions.InlineStyleBuilder.VerticalAlign | ( | Font.VerticalTextAlignValue | alignment | ) |
Sets the vertical alignment for the font.
| alignment | Alignment value |
Definition at line 149 of file InlineStyleBuilder.cs.