TableCellBorder Object
Description
A TableCellBorder object represents the border of a table cell.
Syntax
TableCellBorderExamples
The following example demonstrates TableCellBorder in a practical document-editing workflow. A TableCellBorder object represents the border of a table cell.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectTableCellBorder(tableCellBorder) {
tableCellBorder.getColor(
function(color) {
console.log("get color result:", color);
},
onTxError
);
}Members
Methods
| Method | Description |
|---|---|
| getColor | Gets the cell's border color. |
| getTextDistance | Gets the distance between the table cell's border and its text in twips. |
| getWidth | Gets the cell's width in twips. |
| setColor | Sets the cell's border color. |
| setTextDistance | Sets the distance between the table cell's border and its text in twips. |
| setWidth | Sets the cell's width in twips. |