Javascript: SectionFormat.getColumnLineWidth Method
Description
Gets 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.getColumnLineWidth(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the width of a dividing line between two columns in twips. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates SectionFormat.getColumnLineWidth in a practical document-editing workflow. It gets 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 inspectColumnLineWidth(sectionFormat) {
sectionFormat.getColumnLineWidth(
function(result) {
console.log("get column line width result:", result);
},
onTxError
);
}