Interface IExcelCellStyle
public interface IExcelCellStyle
Represents an Excel cell style.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Defines the available border types.static enum
Defines the available colors.static enum
Defines the horizontal content alignment.static enum
Defines the vertical content alignment. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setBackGroundColor
(IExcelCellStyle.Color backGroundColor) Sets the background color of a cell to the specified color.void
setBorderColor
(Common.BorderSide borderSide, IExcelCellStyle.Color color) Sets the border color for the specified border side.void
setBorderStyle
(Common.BorderSide borderSide, IExcelCellStyle.BorderTypes type) Sets the border style for the specified side.void
setDataFormat
(String dataFormat) Set the data format of a cell to the specified format.void
setFontStyle
(String fontName, short height, IExcelCellStyle.Color fontColor) Sets the text font to the specified values.void
Sets the horizontal alignment of text in a cell.void
setTextDecoration
(boolean isBold, boolean isItalic, boolean isUnderlined, boolean isStrikeOut) Sets the text decoration to the specified values.void
Sets the vertical alignment of text in a cell.
-
Method Details
-
setBorderStyle
Sets the border style for the specified side.- Parameters:
borderSide
- the border side to changetype
- the border type to set
-
setBorderColor
Sets the border color for the specified border side.- Parameters:
borderSide
- the border side to changecolor
- the color to set
-
setTextDecoration
void setTextDecoration(boolean isBold, boolean isItalic, boolean isUnderlined, boolean isStrikeOut) Sets the text decoration to the specified values.- Parameters:
isBold
- true if text should be bold, false otherwiseisItalic
- true if text should be italic, false otherwiseisUnderlined
- true if text should be underlined, false otherwiseisStrikeOut
- true if text should be 'strike-out', false otherwise
-
setFontStyle
Sets the text font to the specified values.- Parameters:
fontName
- the name of the font to setheight
- the font size to setfontColor
- the font color to set
-
setHAlign
Sets the horizontal alignment of text in a cell.- Parameters:
align
- the alignment to set
-
setVAlign
Sets the vertical alignment of text in a cell.- Parameters:
align
- the alignment to set
-
setBackGroundColor
Sets the background color of a cell to the specified color.- Parameters:
backGroundColor
- the background color to set
-
setDataFormat
Set the data format of a cell to the specified format.- Parameters:
dataFormat
- the format to set
-