Javascript: SectionFormat.getColumnWidths Method
Description
Gets the widths, in twips, of the columns on a page.
Syntax
<void> SectionFormat.getColumnWidths(<RequestNumbersCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the widths, in twips, of the columns on a page. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates SectionFormat.getColumnWidths in a practical document-editing workflow. It gets the widths, in twips, of the columns on a page.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectColumnWidths(sectionFormat) {
sectionFormat.getColumnWidths(
function(result) {
console.log("get column widths result:", result);
},
onTxError
);
}