TableRow Object
Description
Represents a single row of a table in a Text Control document.
Syntax
TableRowExamples
The following example demonstrates TableRow in a practical document-editing workflow. It represents a single row of a table in a Text Control document.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectTableRow(tableRow) {
tableRow.getAllowPageBreak(
function(result) {
if (result) {
console.log("get allow page break is available.");
} else {
console.warn("get allow page break is not available in the current document state.");
}
},
onTxError
);
}Members
Methods
| Method | Description |
|---|---|
| getAllowPageBreak | Gets a value specifying how the table row is formatted at page breaks. |
| getCellFormat | Gets the formatting attributes of a table row. |
| getIsHeader | Gets a value specifying whether the table row is part of the table's header. |
| getMinimumHeight | Gets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaller. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text. |
| getRow | Gets the number of the table row represented through this table row object. |
| select | Selects the table row. |
| setAllowPageBreak | Sets a value specifying how the table row is formatted at page breaks. The property value is True, if the table row can be formatted across page breaks. The property value is False, if the table row must not be formatted across page breaks. |
| setIsHeader | Sets a value specifying whether the table row is part of the table's header. |
| setMinimumHeight | Sets the minimum height, in twips, of the table row. The table row is formatted with this height if the text is smaller. Otherwise the row grows as necessary. If the property value is zero, the table row's height is always determined through the containing text. |