Interface ICellFormat
ICellFormat interface gives functionality to read/write the formatting
options of a table cell.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Assign
(ICellFormat source) Assign an existing cell format to the cellReturn font alignment of the cellReturns the back color of the given cellgetFont()
Returns the font of the given cellReturns the fore color of the given cellint
Returns the height of the given cellReturns the line color of the given cellgetStyle()
Get font style of the cellint
getWidth()
Returns the width of the given cellvoid
setAlignment
(FontAlignment fontAlignment) Set font alignment of the cellvoid
setBackColor
(Color color) Sets the back color of the given cellvoid
Sets the font of the given cellvoid
setForeColor
(Color color) Sets the fore color of the given cellvoid
setHeight
(int height) Sets the height of the given cellvoid
setLineColor
(Color color) Sets the line color of the given cellvoid
Set font style of the cellvoid
setWidth
(int width) Sets the width of the given cell
-
Method Details
-
getWidth
int getWidth()Returns the width of the given cell- Returns:
- width of the cell
-
setWidth
void setWidth(int width) Sets the width of the given cell -
getHeight
int getHeight()Returns the height of the given cell- Returns:
- height of the cell
-
setHeight
void setHeight(int height) Sets the height of the given cell -
getBackColor
Color getBackColor()Returns the back color of the given cell- Returns:
- back color of the cell
-
setBackColor
Sets the back color of the given cell -
getForeColor
Color getForeColor()Returns the fore color of the given cell- Returns:
- fore color of the cell
-
setForeColor
Sets the fore color of the given cell -
getLineColor
Color getLineColor()Returns the line color of the given cell- Returns:
- line color of the cell
-
setLineColor
Sets the line color of the given cell -
getFont
Font getFont()Returns the font of the given cell- Returns:
- font of the cell
-
setFont
Sets the font of the given cell -
getAlignment
FontAlignment getAlignment()Return font alignment of the cell- Returns:
- font alignment of the cell
-
setAlignment
Set font alignment of the cell -
getStyle
FontStyle getStyle()Get font style of the cell- Returns:
- font style of the cell
-
setStyle
Set font style of the cell -
Assign
Assign an existing cell format to the cell
-