Javascript: TXTextControl.Justification Enumeration
Description
Specifies the kind of justification.
Members
| Member | Description |
|---|---|
| Spaces | To justify a line additional space is added to the spaces between the words. |
| Kashida | To justify a line Kashida lines are inserted. |
| SpacesAndKashida | To 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
);