TX Text Control .NET Server

TableColumn Object

Object|Introduced in 28.0

Description

Represents a single column of a table in a Text Control document.

Syntax

TableColumn

Examples

The following example demonstrates TableColumn in a practical document-editing workflow. It represents a single column of a table in a Text Control document.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectTableColumn(tableColumn) {
    tableColumn.getCellFormat(
        function(format) {
            if (!format) {
                console.warn("No table cell format was returned.");
                return;
            }
            
            console.log("get cell format result:", format);
        },
        onTxError
    );
}

Members

Methods

MethodDescription
getCellFormatGets the formatting attributes of a table column.
getColumnGets the number of the table column represented through this table column object.
getPositionGets, in twips, the horizontal position of the column.
getWidthGets, in twips, the width of the column.
selectSelects the table column.
setPositionSets, in twips, the horizontal position of the column.
setWidthSets, in twips, the width of the column.