ApiTableCellPr

class ApiTableCellPr

Description

Class representing the table cell properties.

Instance Methods

GetClassType(): tableCellPr

Returns a type of the ApiTableCellPr class.

SetShd(sType, r, g, b, isAuto)

Specifies the shading applied to the contents of the table cell.

SetCellMarginBottom(nValue)

Specifies an amount of space which will be left between the bottom extent of the cell contents and the border of a specific table cell within a table.

SetCellMarginLeft(nValue)

Specifies an amount of space which will be left between the left extent of the cell contents and the border of a specific table cell within a table.

SetCellMarginRight(nValue)

Specifies an amount of space which will be left between the right extent of the cell contents and the border of a specific table cell within a table.

SetCellMarginTop(nValue)

Specifies an amount of space which will be left between the upper extent of the cell contents and the border of a specific table cell within a table.

SetCellBorderBottom(sType, nSize, nSpace, r, g, b)

Sets the border which will be displayed at the bottom of the current table cell.

SetCellBorderLeft(sType, nSize, nSpace, r, g, b)

Sets the border which will be displayed to the left of the current table cell.

SetCellBorderRight(sType, nSize, nSpace, r, g, b)

Sets the border which will be displayed to the right of the current table cell.

SetCellBorderTop(sType, nSize, nSpace, r, g, b)

Sets the border which will be displayed at the top of the current table cell.

SetWidth(sType, nValue)

Sets the preferred width to the current table cell.

SetVerticalAlign(sType)

Specifies the vertical alignment for the text contents within the current table cell.

SetTextDirection(sType)

Specifies the direction of the text flow for this table cell.

SetNoWrap(isNoWrap)

S.

ToJSON(): JSON

Converts the ApiTableCellPr object into the JSON object.

Extends By

ApiTableCellApiTableCellPr

Class representing a table cell.

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).