Javascript: Table.rows Property
Description
Gets a collection of all rows the table consists of.
Syntax
<TableRowCollection> Table.rowsExamples
The following example demonstrates Table.rows in a practical document-editing workflow. It gets a collection of all rows the table consists of.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(mainText) {
const tables = mainText.tables;
tables.getItem(function(table) {
if (!table) {
console.warn("No table is available at the current input position.");
return;
}
table.rows.getCount(function(count) {
console.log("rows count:", count);
}, onTxError);
}, onTxError);
}, onTxError);Limitations
Read Only.