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
ConstructorDescriptionDefines 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.String
Returns the name of the body font.System.String
Returns the name of the heading font.System.String
getName()
Returns the name of the font scheme.void
InitAs(System.String builtInThemeFonts)
Initializes a font scheme with the specified built-in theme fonts.void
setBodyFont(System.String font)
Sets the name of the body font.void
setHeadingFont(System.String font)
Sets the name of the heading font.void
setName(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 inTheme
class.
-
-
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 inTheme
class.
-
getName
public System.String getName()Returns the name of the font scheme.- Returns:
- the name of the font scheme
- See Also:
setName(System.String)
-
setName
public void setName(System.String name)Sets the name of the font scheme.- Parameters:
name
- the name of the font scheme- See Also:
getName()
-
getHeadingFont
public System.String getHeadingFont()Returns the name of the heading font.- Returns:
- the name of the heading font
- See Also:
setHeadingFont(System.String)
,getBodyFont()
,setBodyFont(System.String)
-
setHeadingFont
public void setHeadingFont(System.String font)Sets the name of the heading font.- Parameters:
font
- the name of the heading font- See Also:
getHeadingFont()
,getBodyFont()
,setBodyFont(System.String)
-
getBodyFont
public System.String getBodyFont()Returns the name of the body font.- Returns:
- the name of the body font
- See Also:
setBodyFont(System.String)
,setHeadingFont(System.String)
,getHeadingFont()
-
setBodyFont
public void setBodyFont(System.String font)Sets the name of the body font.- Parameters:
font
- the name of the body font- See Also:
getBodyFont()
,setHeadingFont(System.String)
,getHeadingFont()
-