DS Server

Javascript: TXTextControl.RulerBarBorderStyle Enumeration

Enumeration|Introduced in 30.0

Description

The border style of a ruler bar.

Members

MemberDescription
Simple3DThe ruler bar has a 3D design and no border.
FlatThe ruler bar has a flat design and no border.
Fixed3DThe ruler bar has a 3D design and a border with a single line.
FixedSingleThe ruler bar has has a flat design and a border with a single line.
ColorSchemeThe ruler bar has a flat design without a border. The colors depend on the color scheme currently set through the system or on the colors set with the displayColors property.

Examples

The following example uses TXTextControl.RulerBarBorderStyle.Simple3D (the ruler bar has a 3D design and no border.) in a document-editing workflow.

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

TXTextControl.rulerBar.setBorderStyle(
    TXTextControl.RulerBarBorderStyle.Simple3D,
    function() {
        console.log("set border style completed.");
    },
    onTxError
);