# Javascript: TXTextControl.ListType Enumeration

> Specifies the type of a list.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.ListType Enumeration
- **315 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/listtype-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/listtype-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/listtype-enumeration/llms-full.txt

---

### Description

Specifies the type of a list.

### Members

| Member | Description |
|---|---|
| None | The text is neither a bulleted nor a numbered list. |
| Bulleted | The list is a bulleted list. |
| Numbered | The list is a numbered list. |
| Structured | The list is a structured list. All numbers of higher levels (lower level numbers) are displayed in front of the list number. The additional text of all levels in front and behind the list numbers is also displayed. |

### Examples

The following example uses `TXTextControl.ListType.Bulleted` (the list is a bulleted list.) in a document-editing workflow.

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

TXTextControl.listFormat.setType(
    TXTextControl.ListType.Bulleted,
    function() {
        console.log("set type completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.ListFormatCharacter Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/listformatcharacter-enumeration/llms-full.txt)
- **Next:** [Javascript: TXTextControl.load Method](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/load-method/llms-full.txt)
