# FormattingStyleCollection Object

> The FormattingStyleCollection contains a collection of formatting styles.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Object
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > FormattingStyleCollection Object
- **427 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstylecollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstylecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstylecollection/llms-full.txt

---

### Description

The FormattingStyleCollection contains a collection of [formatting styles](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/llms-full.txt).

### Syntax

```javascript
FormattingStyleCollection
```

### Examples

The following example demonstrates `FormattingStyleCollection` in a practical document-editing workflow. The FormattingStyleCollection contains a collection of formatting styles.

```javascript
function inspectFormattingStyleCollection(formattingStyles) {
    console.log("FormattingStyleCollection object:", formattingStyles);
}
```

---

## In This Section

- [Javascript: FormattingStyleCollection.remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstylecollection/remove-method/llms-full.txt): Removes a formatting style from the collection.

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.setUnderline Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setunderline-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyleCollection.remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstylecollection/remove-method/llms-full.txt)
