# Javascript: InputFormat.setNumberedListFormat Method

> Sets the number format for a numbered list 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.setNumberedListFormat Method
- **355 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/setnumberedlistformat-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/setnumberedlistformat-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/setnumberedlistformat-method/llms-full.txt

---

### Description

Sets the number format for a numbered list at the current input position.

### Syntax

```javascript
<void> InputFormat.setNumberedListFormat(<NumberFormat> numberedListFormat, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| numberedListFormat | The number format for a numbered list at the current input position. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `InputFormat.setNumberedListFormat` in a practical document-editing workflow. It sets the number format for a numbered list at the current input position.

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

TXTextControl.inputFormat.setNumberedListFormat(
    TXTextControl.NumberFormat.ArabicNumbers,
    function() {
        console.log("set numbered list format completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: InputFormat.setNumberedList Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/setnumberedlist-method/llms-full.txt)
- **Next:** [Javascript: InputFormat.setRightAligned Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/setrightaligned-method/llms-full.txt)
