# Javascript: TXTextControl.paragraphStyles Property

> All paragraph formatting styles in the current document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.paragraphStyles Property
- **212 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/paragraphstyles-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/paragraphstyles-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/paragraphstyles-property/llms-full.txt

---

### Description

All paragraph formatting styles in the current document.

### Syntax

```javascript
<ParagraphStyleCollection> TXTextControl.paragraphStyles
```

### Examples

The following example demonstrates `TXTextControl.paragraphStyles` in a practical document-editing workflow. All paragraph formatting styles in the current document.

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

tXTextControl.paragraphStyles.getCount(function(count) {
    console.log("paragraph styles count:", count);
}, onTxError);
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: TXTextControl.paragraphFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/paragraphformat-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.PermanentControlChar Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/permanentcontrolchar-enumeration/llms-full.txt)
