# Javascript: ParagraphFormat.getJustification Method

> Gets the kind of justification in documents containing Arabic or Hebrew characters.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: ParagraphFormat.getJustification Method
- **378 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/paragraphformat/getjustification-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/paragraphformat/getjustification-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/paragraphformat/getjustification-method/llms-full.txt

---

### Description

Gets the kind of justification in documents containing Arabic or Hebrew characters.

### Syntax

```javascript
<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.

```javascript
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
);
```

---

## Nearby

- **Previous:** [Javascript: ParagraphFormat.getHangingIndent Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/paragraphformat/gethangingindent-method/llms-full.txt)
- **Next:** [Javascript: ParagraphFormat.getKeepLinesTogether Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/paragraphformat/getkeeplinestogether-method/llms-full.txt)
