Constructors
new TableCellProxy()
new TableCellProxy(
table,
row,
column): TableCellProxy
Parameters
Parameter | Type |
---|---|
table | TableBlockProxy |
row | number |
column | number |
Returns
Properties
column
readonly column: number;
row
readonly row: number;
table
readonly table: TableBlockProxy;
Methods
getBoundingBox()
getBoundingBox(): Box
Returns
getHeight()
getHeight(): number
Returns
number
the pixel height of the cell, including any cells it is merged with.
getMergedCellSize()
getMergedCellSize(): object
Cells in a table can be merged together with adjacent cells into one larger cell. In this case, the upper-
left cell remains visible but is enlarged to cover additional cells, and the other cells are hidden.
Returns
object
the size of this cell, in how many cells horizontally and vertically have been merged into it.
For most cells, this will be {w:1, h:1}, but if it has been merged with the cell to the right of it, it
would be {w:2, h:1}.
h
h: number;
w
w: number;
getText()
getText(): string
Returns
string
getTextStyle()
getTextStyle(): TextStyle
Returns
getWidth()
getWidth(): number
Returns
number
the pixel width of the cell, including any cells it is merged with.
setFill()
setFill(fill): void
Parameters
Parameter | Type |
---|---|
fill | SimpleFillStyle |
Returns
void
setMergedCellSize()
setMergedCellSize(size): void
/**
- Cells in a table can be merged together with adjacent cells into one larger cell. In this case, the upper-
- left cell remains visible but is enlarged to cover additional cells, and the other cells are hidden.
Parameters
Parameter | Type | Description |
---|---|---|
size | object | the desired size of this cell, in how many cells horizontally and vertically are merged into it. * This normally {w:1, h:1} for a normal cell, or {w:2, h:1} to merge a cell with the one to the right of it, etc. |
size.h | number | - |
size.w | number | - |
Returns
void
setText()
setText(text): undefined
Parameters
Parameter | Type |
---|---|
text | string |
Returns
undefined
setTextStyle()
setTextStyle(style): void
Parameters
Parameter | Type |
---|---|
style | Partial <TextStyle > |
Returns
void