DS Server

Javascript: TXTextControl.Justification Enumeration

Enumeration|Introduced in 26.0

Description

Specifies the kind of justification.

Members

MemberDescription
SpacesTo justify a line additional space is added to the spaces between the words.
KashidaTo justify a line Kashida lines are inserted.
SpacesAndKashidaTo justify a line both kinds of justification are used.

Examples

The following example uses TXTextControl.Justification.Spaces (to justify a line additional space is added to the spaces between the words.) in a document-editing workflow.

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

TXTextControl.paragraphFormat.setJustification(
    TXTextControl.Justification.Spaces,
    function() {
        console.log("set justification completed.");
    },
    onTxError
);