Javascript: SectionFormat.setEqualColumnWidth Method
Description
Sets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size.
Syntax
<void> SectionFormat.setEqualColumnWidth(<boolean> equalColumnWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| equalColumnWidth | Indicates whether the columns on a page have all the same width and the same distance between them. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates SectionFormat.setEqualColumnWidth in a practical document-editing workflow. It sets a value indicating whether the columns on a page have all the same width and the same distance between them. If this property is set to true, the width of the columns are automatically calculated from the page size.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureEqualColumnWidth(sectionFormat) {
sectionFormat.setEqualColumnWidth(
true,
function() {
console.log("set equal column width completed.");
},
onTxError
);
}