# Javascript: InputFormat.getStructuredListFormat Method

> Gets the number format for a structured 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.getStructuredListFormat Method
- **373 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getstructuredlistformat-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getstructuredlistformat-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getstructuredlistformat-method/llms-full.txt

---

### Description

Gets the number format for a structured list at the current input position.

### Syntax

```javascript
<void> InputFormat.getStructuredListFormat(<RequestNumberFormatCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

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

### Examples

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

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

TXTextControl.inputFormat.getStructuredListFormat(
    function(result) {
        if (!result) {
            console.warn("No number format was returned.");
            return;
        }
        
        console.log("get structured list format result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: InputFormat.getStructuredList Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getstructuredlist-method/llms-full.txt)
- **Next:** [Javascript: InputFormat.getStructureLevel Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/inputformat/getstructurelevel-method/llms-full.txt)
