DS Server

Javascript: TXTextControl.TabType Enumeration

Enumeration|Introduced in 26.0

Description

Determines the tabulator type.

Members

MemberDescription
LeftTabThe tab position is at the left side of the text.
RightTabThe tab position is at the right side of the text.
CenterTabThe text is centered to the tab position.
DecimalTabThe decimal sign is aligned at the tab position.
RightBorderTabThe tab is positioned right most and the text is diplayed at the left of this position. The tab position set with the TabPositions property is ignored. Only one tab of this kind is possible in a paragraph.

Examples

The following example uses TXTextControl.TabType.LeftTab (the tab position is at the left side of the text.) in a document-editing workflow.

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

TXTextControl.paragraphFormat.setTabTypes(
    TXTextControl.TabType.LeftTab,
    function() {
        console.log("set tab types completed.");
    },
    onTxError
);

Further Reading

  • Creating New Styles with TX Text Control .NET for Windows Forms –
  • Using Tabs in TX Text Control –