Namespace EasyXLS.Themes
Class ExcelFontScheme
System.Object
EasyXLS.Themes.ExcelFontScheme
public class ExcelFontScheme
extends System.Object
This class stores the font information for a theme.
-
Constructor Summary
ConstructorsConstructorDescriptionDefines a font scheme that is initialized with the built-in Office fonts.ExcelFontScheme(System.String builtInThemeFonts) Defines a font scheme that is initialized with the specified built-in theme fonts. -
Method Summary
Modifier and TypeMethodDescriptionSystem.StringReturns the name of the body font.System.StringReturns the name of the heading font.System.StringgetName()Returns the name of the font scheme.voidInitAs(System.String builtInThemeFonts) Initializes a font scheme with the specified built-in theme fonts.voidsetBodyFont(System.String font) Sets the name of the body font.voidsetHeadingFont(System.String font) Sets the name of the heading font.voidsetName(System.String name) Sets the name of the font scheme.Methods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ExcelFontScheme
public ExcelFontScheme()Defines a font scheme that is initialized with the built-in Office fonts. -
ExcelFontScheme
public ExcelFontScheme(System.String builtInThemeFonts) Defines a font scheme that is initialized with the specified built-in theme fonts.- Parameters:
builtInThemeFonts- the built-in theme fonts. Possible values are available inThemeclass.
-
-
Method Details
-
InitAs
public void InitAs(System.String builtInThemeFonts) Initializes a font scheme with the specified built-in theme fonts.- Parameters:
builtInThemeFonts- the built-in theme fonts. Possible values are available inThemeclass.
-
getName
public System.String getName()Returns the name of the font scheme.- Returns:
- the name of the font scheme
- See Also:
-
setName
public void setName(System.String name) Sets the name of the font scheme.- Parameters:
name- the name of the font scheme- See Also:
-
getHeadingFont
public System.String getHeadingFont()Returns the name of the heading font.- Returns:
- the name of the heading font
- See Also:
-
setHeadingFont
public void setHeadingFont(System.String font) Sets the name of the heading font.- Parameters:
font- the name of the heading font- See Also:
-
getBodyFont
public System.String getBodyFont()Returns the name of the body font.- Returns:
- the name of the body font
- See Also:
-
setBodyFont
public void setBodyFont(System.String font) Sets the name of the body font.- Parameters:
font- the name of the body font- See Also:
-