# Javascript: Selection.listFormat Property

> Gets a bulleted or numbered list and / or its formatting attributes for the selected text.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: Selection.listFormat Property
- **149 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/listformat-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/listformat-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/listformat-property/llms-full.txt

---

### Description

Gets a bulleted or numbered list and / or its formatting attributes for the selected text.

### Syntax

```javascript
<ListFormat> Selection.listFormat
```

### Examples

The following example demonstrates `Selection.listFormat` in a practical document-editing workflow. It gets a bulleted or numbered list and / or its formatting attributes for the selected text.

```javascript
const listFormat = TXTextControl.selection.listFormat;
console.log("list format:", listFormat);
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: Selection.isCommonSelectionValueSelected Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/iscommonselectionvalueselected-method/llms-full.txt)
- **Next:** [Javascript: Selection.load Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/selection/load-method/llms-full.txt)
