Package com.grapecity.documents.excel
Class TextFormatInfo
java.lang.Object
com.grapecity.documents.excel.TextFormatInfo
Describes font and layout options for drawing text.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleangetBold()Gets the top-level font weight for the content of the element.final StringGets a family of related fonts.final doubleGets the desired font size to use in points.final booleanGets the font style for the content of the element.final voidsetBold(boolean value) Sets the top-level font weight for the content of the element.final voidsetFontFamily(String value) Sets a family of related fonts.final voidsetFontSize(double value) Sets the desired font size to use in points.final voidsetItalic(boolean value) Sets the font style for the content of the element.
-
Constructor Details
-
TextFormatInfo
public TextFormatInfo()
-
-
Method Details
-
getFontFamily
Gets a family of related fonts. -
setFontFamily
Sets a family of related fonts. -
getFontSize
public final double getFontSize()Gets the desired font size to use in points. -
setFontSize
public final void setFontSize(double value) Sets the desired font size to use in points. -
getBold
public final boolean getBold()Gets the top-level font weight for the content of the element.True if font weight is bold (700). Otherwise, font weight is normal or regular (400).
-
setBold
public final void setBold(boolean value) Sets the top-level font weight for the content of the element.True if font weight is bold (700). Otherwise, font weight is normal or regular (400).
-
getItalic
public final boolean getItalic()Gets the font style for the content of the element.True if font style is italic. Otherwise, font style is normal.
-
setItalic
public final void setItalic(boolean value) Sets the font style for the content of the element.True if font style is italic. Otherwise, font style is normal.
-