Constructors
new TableCellProxy()
new TableCellProxy(
table,
row,
column): TableCellProxyParameters
| 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(): BoxReturns
getHeight()
getHeight(): numberReturns
number
the pixel height of the cell, including any cells it is merged with.
getMergedCellSize()
getMergedCellSize(): objectCells 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(): stringReturns
string
getTextStyle()
getTextStyle(): TextStyleReturns
getWidth()
getWidth(): numberReturns
number
the pixel width of the cell, including any cells it is merged with.
setFill()
setFill(fill): voidParameters
| 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): undefinedParameters
| Parameter | Type |
|---|---|
text | string |
Returns
undefined
setTextStyle()
setTextStyle(style): voidParameters
| Parameter | Type |
|---|---|
style | Partial<TextStyle> |
Returns
void