# Javascript: ListFormat.getLeftIndent Method

> Gets the left indent for a numbered list.

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

---

### Description

Gets the left indent for a numbered list.

### Syntax

```javascript
<void> ListFormat.getLeftIndent(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the left indent for a numbered list. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `ListFormat.getLeftIndent` in a practical document-editing workflow. It gets the left indent for a numbered list.

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

TXTextControl.listFormat.getLeftIndent(
    function(result) {
        console.log("get left indent result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: ListFormat.getHangingIndent Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/listformat/gethangingindent-method/llms-full.txt)
- **Next:** [Javascript: ListFormat.getLevel Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/listformat/getlevel-method/llms-full.txt)
