Javascript: ParagraphFormat.getJustification Method
Description
Gets the kind of justification in documents containing Arabic or Hebrew characters.
Syntax
<void> ParagraphFormat.getJustification(<RequestJustificationCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the kind of justification in documents containing Arabic or Hebrew characters. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ParagraphFormat.getJustification in a practical document-editing workflow. It gets the kind of justification in documents containing Arabic or Hebrew characters.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.paragraphFormat.getJustification(
function(justification) {
if (!justification) {
console.warn("No justification was returned.");
return;
}
console.log("get justification result:", justification);
},
onTxError
);