Javascript: SectionFormat.setColumnLineWidth Method
Description
Sets the width of a dividing line between two columns. If this property's value is zero there is no dividing line. Otherwise it is a value in twips.
Syntax
<void> SectionFormat.setColumnLineWidth(<number> columnLineWidth, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| columnLineWidth | The width of a dividing line between two columns. |
| 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.setColumnLineWidth in a practical document-editing workflow. It sets the width of a dividing line between two columns. If this property's value is zero there is no dividing line. Otherwise it is a value in twips.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureColumnLineWidth(sectionFormat) {
sectionFormat.setColumnLineWidth(
3,
function() {
console.log("set column line width completed.");
},
onTxError
);
}