TableCellProxy


Constructors

new TableCellProxy()

new TableCellProxy(
   table, 
   row, 
   column): TableCellProxy

Parameters

ParameterType
tableTableBlockProxy
rownumber
columnnumber

Returns

TableCellProxy


Properties

column

readonly column: number;

row

readonly row: number;

table

readonly table: TableBlockProxy;

Methods

getBoundingBox()

getBoundingBox(): Box

Returns

Box


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

TextStyle


getWidth()

getWidth(): number

Returns

number

the pixel width of the cell, including any cells it is merged with.


setFill()

setFill(fill): void

Parameters

ParameterType
fillSimpleFillStyle

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

ParameterTypeDescription
sizeobject

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.hnumber-
size.wnumber-

Returns

void


setText()

setText(text): undefined

Parameters

ParameterType
textstring

Returns

undefined


setTextStyle()

setTextStyle(style): void

Parameters

ParameterType
stylePartial<TextStyle>

Returns

void