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