Java org.apache.poi.xssf.usermodel XSSFFont fields, constructors, methods, implement or subclass

Example usage for Java org.apache.poi.xssf.usermodel XSSFFont fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.poi.xssf.usermodel XSSFFont.

The text is from its open source code.

Field

StringDEFAULT_FONT_NAME
By default, Microsoft Office Excel 2007 uses the Calibri font in font size 11
shortDEFAULT_FONT_SIZE
By default, Microsoft Office Excel 2007 uses the Calibri font in font size 11
shortDEFAULT_FONT_COLOR
Default font color is black

Method

booleangetBold()
get a boolean value for the boldness to use.
shortgetColor()
get the indexed color value for the font References a color defined in IndexedColors.
CTFontgetCTFont()
get the underlying CTFont font
shortgetFontHeight()
Get the font height in unit's of 1/20th of a point.
shortgetFontHeightInPoints()
Get the font height in points.
StringgetFontName()
get the name of the font (i.e.
booleangetItalic()
get a boolean value that specify whether to use italics or not
shortgetTypeOffset()
get normal,super or subscript.
bytegetUnderline()
get type of text underlining to use
XSSFColorgetXSSFColor()
get the color value for the font References a color defined as Standard Alpha Red Green Blue color value (ARGB).
voidsetBold(boolean bold)
set a boolean value for the boldness to use.
voidsetCharSet(byte charset)
set character-set to use.
voidsetCharSet(int charset)
set character-set to use.
voidsetCharSet(FontCharset charSet)
set character-set to use.
voidsetColor(short color)
set the indexed color for the font
voidsetColor(XSSFColor color)
set the color for the font in Standard Alpha Red Green Blue color value
voidsetFamily(int value)
Set the font family this font belongs to.
voidsetFamily(FontFamily family)
set an enumeration representing the font family this font belongs to.
voidsetFontHeight(short height)
set the font height in points.
voidsetFontHeight(double height)
set the font height in points.
voidsetFontHeightInPoints(short height)
set the font height in points.
voidsetFontName(String name)
set the name for the font (i.e.
voidsetItalic(boolean italic)
set a boolean value for the property specifying whether to use italics or not If omitted, the default value is true.
voidsetStrikeout(boolean strikeout)
set a boolean value for the property specifying whether to use a strikeout horizontal line through the text or not If omitted, the default value is true.
voidsetTypeOffset(short offset)
set normal,super or subscript, that representing the vertical-alignment setting.
voidsetUnderline(byte underline)
set the style of underlining that is used.
voidsetUnderline(FontUnderline underline)
set an enumeration representing the style of underlining that is used.