TX Text Control .NET Server

Javascript: SectionFormat.getColumnLineWidth Method

Method|Introduced in 26.0

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

ParameterDescription
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
    );
}