TX Text Control .NET Server

Javascript: RulerBarViewGenerator.getBorderStyle Method

Method|Introduced in 30.0

Description

Gets the border style of the ruler bar.

Syntax

<void> RulerBarViewGenerator.getBorderStyle(<RequestRulerBarBorderStyleCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the property value.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates RulerBarViewGenerator.getBorderStyle in a practical document-editing workflow. It gets the border style of the ruler bar.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.rulerBar.getBorderStyle(
    function(borderStyle) {
        if (!borderStyle) {
            console.warn("No ruler bar border style was returned.");
            return;
        }
        
        console.log("get border style result:", borderStyle);
    },
    onTxError
);