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