19 private Font style =
new Font();
28 style.Name = fontName;
61 style.Italic = italic;
72 style.Strike = strikethrough;
83 this.style.Underline = style;
94 style.ColorValue = color;
106 style.ColorValue = Colors.
Color.CreateRgb(argb);
118 style.ColorValue = Colors.
Color.CreateTheme(theme, tint);
129 style.ColorValue = Colors.
Color.CreateIndexed(indexed);
140 style.ColorValue = Colors.
Color.CreateIndexed(colorIndex);
151 style.VerticalAlign = alignment;
161 style.VerticalAlign = Font.VerticalTextAlignValue.
Superscript;
171 style.VerticalAlign = Font.VerticalTextAlignValue.
Subscript;
182 style.Outline = outline;
193 style.Shadow = shadow;
204 style.Condense = condense;
215 style.Extend = extend;
226 style.Charset = charset;
237 style.Family = family;
248 style.Scheme = scheme;
257 public Font
Build(
bool reset =
true)
259 Font instance = style.CopyFont();
Builder for creating inline Styles.Font styles with a fluent API.
InlineStyleBuilder Extend(bool extend=true)
Sets whether the font is extended.
Font Build(bool reset=true)
Builds the inline style instance.
InlineStyleBuilder Subscript()
Sets the font to subscript.
InlineStyleBuilder ColorIndexed(IndexedColor.Value indexed)
Sets the font color from an indexed color value.
InlineStyleBuilder Color(Color color)
Sets the font color.
InlineStyleBuilder Underline(Font.UnderlineValue style=Styles.Font.UnderlineValue.Single)
Sets the underline style for the font.
InlineStyleBuilder Condense(bool condense=true)
Sets whether the font is condensed.
InlineStyleBuilder ColorIndexed(int colorIndex)
Sets the font color from an indexed color value, using the index number (0-65).
InlineStyleBuilder Italic(bool italic=true)
Sets whether the font is italic.
InlineStyleBuilder Shadow(bool shadow=true)
Sets whether the font has shadow.
InlineStyleBuilder Family(Font.FontFamilyValue family)
Sets the font family.
InlineStyleBuilder Bold(bool bold=true)
Sets whether the font is bold.
InlineStyleBuilder Strikethrough(bool strikethrough=true)
Sets whether the font has strikethrough.
InlineStyleBuilder VerticalAlign(Font.VerticalTextAlignValue alignment)
Sets the vertical alignment for the font.
InlineStyleBuilder FontName(string fontName)
Sets the font name for the inline style.
InlineStyleBuilder Superscript()
Sets the font to superscript.
InlineStyleBuilder Outline(bool outline=true)
Sets whether the font has outline.
InlineStyleBuilder Scheme(Font.SchemeValue scheme)
Sets the font scheme.
InlineStyleBuilder Size(float size)
Sets the font size for the inline style.
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 Charset(Font.CharsetValue charset)
Sets the font charset.