Javascript: TableCell.getWidth Method
Description
Gets, in twips, the width of the cell.
Syntax
<void> TableCell.getWidth(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the cell's with in twips. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TableCell.getWidth in a practical document-editing workflow. Gets, in twips, the width of the cell.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectWidth(tableCell) {
tableCell.getWidth(
function(result) {
console.log("get width result:", result);
},
onTxError
);
}