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