接口 IFontFormat
public interface IFontFormat
Represents font attributes (for example, font name, font size, and color) for an object.
-
方法概要
修饰符和类型方法说明boolean
getBold()
Gets the boolean property that indicates whether the represented text is bold.getColor()
Gets the color format.boolean
Gets the boolean property that indicates whether the represented text is italicized.getName()
Gets the font name to use for the represented text.double
getSize()
Gets the size of the font in points.boolean
Gets the boolean property that indicates whether the represented text has a strike through it.boolean
Gets the boolean property that indicates whether the represented text is a subscript.boolean
Gets the boolean property that indicates whether the represented text is a superscript.Gets the theme font in the applied font scheme that is associated with the specified object.Gets the UnderlineStyle of the represented text.void
setBold
(boolean value) Sets the boolean property that indicates whether the represented text is bold.void
setItalic
(boolean value) Sets the boolean property that indicates whether the represented text is italicized.void
Sets the font name to use for the represented text.void
setSize
(double value) Sets the size of the font in points.void
setStrikethrough
(boolean value) Sets the boolean property that indicates whether the represented text has a strike through it.void
setSubscript
(boolean value) Sets the boolean property that indicates whether the represented text is a subscript.void
setSuperscript
(boolean value) Sets the boolean property that indicates whether the represented text is a superscript.void
setThemeFont
(ThemeFont value) Sets the theme font in the applied font scheme that is associated with the specified object.void
setUnderline
(TextUnderlineType value) Sets the UnderlineStyle of the represented text.
-
方法详细资料
-
getColor
IColorFormat getColor()Gets the color format. -
getBold
boolean getBold()Gets the boolean property that indicates whether the represented text is bold. -
setBold
void setBold(boolean value) Sets the boolean property that indicates whether the represented text is bold. -
getItalic
boolean getItalic()Gets the boolean property that indicates whether the represented text is italicized. -
setItalic
void setItalic(boolean value) Sets the boolean property that indicates whether the represented text is italicized. -
getName
String getName()Gets the font name to use for the represented text. -
setName
Sets the font name to use for the represented text. -
getSize
double getSize()Gets the size of the font in points. -
setSize
void setSize(double value) Sets the size of the font in points. -
getStrikethrough
boolean getStrikethrough()Gets the boolean property that indicates whether the represented text has a strike through it. -
setStrikethrough
void setStrikethrough(boolean value) Sets the boolean property that indicates whether the represented text has a strike through it. -
getSubscript
boolean getSubscript()Gets the boolean property that indicates whether the represented text is a subscript. -
setSubscript
void setSubscript(boolean value) Sets the boolean property that indicates whether the represented text is a subscript. -
getSuperscript
boolean getSuperscript()Gets the boolean property that indicates whether the represented text is a superscript. -
setSuperscript
void setSuperscript(boolean value) Sets the boolean property that indicates whether the represented text is a superscript. -
getUnderline
TextUnderlineType getUnderline()Gets the UnderlineStyle of the represented text. -
setUnderline
Sets the UnderlineStyle of the represented text. -
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.
-