# Javascript: InputFormat.getRightIndent Method

> Gets the right indent, in twips, at the current input position.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: InputFormat.getRightIndent Method
- **304 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getrightindent-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getrightindent-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getrightindent-method/llms-full.txt

---

### Description

Gets the right indent, in twips, at the current input position.

### Syntax

```javascript
<void> InputFormat.getRightIndent(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the right indent, in twips as parameter. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `InputFormat.getRightIndent` in a practical document-editing workflow. It gets the right indent, in twips, at the current input position.

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

TXTextControl.inputFormat.getRightIndent(
    function(result) {
        console.log("get right indent result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: InputFormat.getRightFrameLine Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getrightframeline-method/llms-full.txt)
- **Next:** [Javascript: InputFormat.getRightToLeft Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getrighttoleft-method/llms-full.txt)
