Interface ICellFormat
ICellFormat interface gives functionality to read/write the formatting
options of a table cell.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAssign(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 cellintReturns the height of the given cellReturns the line color of the given cellgetStyle()Get font style of the cellintgetWidth()Returns the width of the given cellvoidsetAlignment(FontAlignment fontAlignment) Set font alignment of the cellvoidsetBackColor(Color color) Sets the back color of the given cellvoidSets the font of the given cellvoidsetForeColor(Color color) Sets the fore color of the given cellvoidsetHeight(int height) Sets the height of the given cellvoidsetLineColor(Color color) Sets the line color of the given cellvoidSet font style of the cellvoidsetWidth(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
-