接口 IFont
public interface IFont
Contains the font attributes (font name, font size, color, and so on) for an object.
-
方法概要
修饰符和类型方法说明boolean
getBold()
Gets whether the font is bold.getColor()
Gets or sets theColor
of the represented text.int
Gets the color of the font.boolean
Gets whether the font style is italic.getName()
Gets the name of the object.double
getSize()
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
setBold
(boolean value) Sets whether the font is bold.void
Sets theColor
of the represented text.void
setColorIndex
(int value) Sets the color of the font.void
setItalic
(boolean value) Sets whether the font style is italic.void
Sets the name of the object.void
setSize
(double value) Sets the size of the font.void
setStrikethrough
(boolean value) Sets whether the font is struck through with a horizontal line.void
setSubscript
(boolean value) Sets whether the font is formatted as subscript (False by default).void
setSuperscript
(boolean value) Sets whether the font is formatted as superscript.void
setThemeColor
(ThemeColor value) Sets the theme color in the applied color scheme that is associated with the specified object.void
setThemeFont
(ThemeFont value) Sets the theme font in the applied font scheme that is associated with the specified object.void
setTintAndShade
(double value) Sets a value that lightens or darkens a color.void
setUnderline
(UnderlineType value) Sets the type of underline applied to the font.
-
方法详细资料
-
getBold
boolean getBold()Gets whether the font is bold. -
setBold
void setBold(boolean value) Sets whether the font is bold. -
getColor
Color getColor()Gets or sets theColor
of the represented text. -
setColor
Sets theColor
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
String 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
ThemeColor 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
UnderlineType getUnderline()Gets the type of underline applied to the font. -
setUnderline
Sets the type of underline applied to the font. -
getThemeFont
ThemeFont 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.
-