TX Text Control .NET Server

TableCellBorder Object

Object|Introduced in 28.0

Description

A TableCellBorder object represents the border of a table cell.

Syntax

TableCellBorder

Examples

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

MethodDescription
getColorGets the cell's border color.
getTextDistanceGets the distance between the table cell's border and its text in twips.
getWidthGets the cell's width in twips.
setColorSets the cell's border color.
setTextDistanceSets the distance between the table cell's border and its text in twips.
setWidthSets the cell's width in twips.