Interface IFont
public interface IFont
Contains the font attributes (font name, font size, color, and so on) for an object.
-
Method Summary
boolean
Gets whether the font is bold.
Gets or sets the
Color
of the represented text.
int
Gets the color of the font.
boolean
Gets whether the font style is italic.
Gets the name of the object.
double
Gets the size of the font.
boolean
Gets whether the font is struck through with a horizontal line.
boolean
Gets whether the font is formatted as subscript (False by default).
boolean
Gets whether the font is formatted as superscript.
Gets the theme color in the applied color scheme that is associated with the specified object.
Gets the theme font in the applied font scheme that is associated with the specified object.
double
Gets a value that lightens or darkens a color.
Gets the type of underline applied to the font.
void
Sets whether the font is bold.
void
Sets the
Color
of the represented text.
void
Sets the color of the font.
void
Sets whether the font style is italic.
void
Sets the name of the object.
void
Sets the size of the font.
void
Sets whether the font is struck through with a horizontal line.
void
Sets whether the font is formatted as subscript (False by default).
void
Sets whether the font is formatted as superscript.
void
Sets the theme color in the applied color scheme that is associated with the specified object.
void
Sets the theme font in the applied font scheme that is associated with the specified object.
void
Sets a value that lightens or darkens a color.
void
Sets the type of underline applied to the font.
-
Method Details
-
getBold
boolean getBold()
Gets whether the font is bold.
-
setBold
void setBold(boolean value)
Sets whether the font is bold.
-
getColor
Gets or sets the
Color
of the represented text.
-
setColor
void setColor(Color value)
Sets the
Color
of the represented text.
-
getColorIndex
int getColorIndex()
Gets the color of the font.
-
setColorIndex
void setColorIndex(int value)
Sets the color of the font.
-
getItalic
boolean getItalic()
Gets whether the font style is italic.
-
setItalic
void setItalic(boolean value)
Sets whether the font style is italic.
-
getName
Gets the name of the object.
-
setName
Sets the name of the object.
-
getSize
double getSize()
Gets the size of the font.
-
setSize
void setSize(double value)
Sets the size of the font.
-
getStrikethrough
boolean getStrikethrough()
Gets whether the font is struck through with a horizontal line.
-
setStrikethrough
void setStrikethrough(boolean value)
Sets whether the font is struck through with a horizontal line.
-
getSubscript
boolean getSubscript()
Gets whether the font is formatted as subscript (False by default).
-
setSubscript
void setSubscript(boolean value)
Sets whether the font is formatted as subscript (False by default).
-
getSuperscript
boolean getSuperscript()
Gets whether the font is formatted as superscript. The value is False by default.
-
setSuperscript
void setSuperscript(boolean value)
Sets whether the font is formatted as superscript.
-
getThemeColor
Gets the theme color in the applied color scheme that is associated with the specified object.
-
setThemeColor
Sets the theme color in the applied color scheme that is associated with the specified object.
-
getTintAndShade
double getTintAndShade()
Gets a value that lightens or darkens a color. The valid number is from -1 (darkest) to 1 (lightest). Zero (0) is neutral.
-
setTintAndShade
void setTintAndShade(double value)
Sets a value that lightens or darkens a color. The valid number is from -1 (darkest) to 1 (lightest). Zero (0) is neutral.
-
getUnderline
Gets the type of underline applied to the font.
-
setUnderline
Sets the type of underline applied to the font.
-
getThemeFont
Gets the theme font in the applied font scheme that is associated with the specified object.
-
setThemeFont
Sets the theme font in the applied font scheme that is associated with the specified object.