# Javascript: ListFormat.getTextAfterNumber Method

> Gets the text that is displayed behind the number in 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.getTextAfterNumber Method
- **313 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/listformat/gettextafternumber-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/listformat/gettextafternumber-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/listformat/gettextafternumber-method/llms-full.txt

---

### Description

Gets the text that is displayed behind the number in a numbered list.

### Syntax

```javascript
<void> ListFormat.getTextAfterNumber(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the text that is displayed behind the number in a numbered list. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `ListFormat.getTextAfterNumber` in a practical document-editing workflow. It gets the text that is displayed behind the number in a numbered list.

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

TXTextControl.listFormat.getTextAfterNumber(
    function(result) {
        console.log("get text after number result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: ListFormat.getRestartNumbering Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/listformat/getrestartnumbering-method/llms-full.txt)
- **Next:** [Javascript: ListFormat.getTextBeforeNumber Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/listformat/gettextbeforenumber-method/llms-full.txt)
