TX Text Control .NET Server

Javascript: TXTextControl.TabLeader Enumeration

Enumeration|Introduced in 29.0

Description

Defines how a tab gap is filled.

Members

MemberDescription
NoneThe tab gap is not filled.
PeriodThe tab gap is filled with periods.
DotThe tab gap is filled with dots.
DashThe tab gap is filled with dashes.
UnderlineThe tab gap is underlined.

Examples

The following example uses TXTextControl.TabLeader.Period (the tab gap is filled with periods.) in a document-editing workflow.

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

TXTextControl.paragraphFormat.setTabLeaders(
    TXTextControl.TabLeader.Period,
    function() {
        console.log("set tab leaders completed.");
    },
    onTxError
);