# FormattingStyleCollection Class

> The FormattingStyleCollection class is the base class of the ParagraphStyleCollection and InlineStyleCollection classes. It implements their base functionality and the IEnumerable and the ICollection interface.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 10.1
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Derived:** `TXTextControl.InlineStyleCollection`, `TXTextControl.ParagraphStyleCollection`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > FormattingStyleCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/#members)

---

## In This Section

- [FormattingStyleCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/count-property/llms.txt): Gets the number of elements contained in the collection.
- [FormattingStyleCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/getenumerator-method/llms.txt): Returns an enumerator that can be used to iterate through the collection.
- [FormattingStyleCollection.IsSynchronized Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/issynchronized-property/llms.txt): Returns true if the collection is designed to be thread safe, otherwise, it returns false.
- [FormattingStyleCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/remove-method/llms.txt): Removes a formatting style from a Text Control document.
- [FormattingStyleCollection.SyncRoot Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/syncroot-property/llms.txt): Gets an object that can be used to synchronize access to the collection.

---

## Nearby

- **Previous:** [FormattingStyle.Underline Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstyle/underline-property/llms.txt)
- **Next:** [FormattingStyleCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formattingstylecollection/count-property/llms.txt)
