# Styles Collection Object

> Styles collection object with all formatting styles of a TX Text Control ActiveX document, obtained with TXTextControl.Styles: Count property and Item method.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Object
- **Path:** TX Text Control ActiveX > API Reference > Styles Collection Object
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/styles/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/styles/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/styles/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/#syntax)
- [Members](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/#members)
- [See Also](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/#see-also)

---

## In This Section

- [Count Property](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/count-property/llms.txt): Returns the number of Style objects in a Styles collection, the number of formatting styles a Text Control document contains, as a Long. Run time only.
- [Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/item-method/llms.txt): Returns the Style object with the given style name from a Styles collection, with Basic examples that read a font, enumerate all styles and change a style.

---

## Nearby

- **Previous:** [WidowOrphanLines Property](https://docs.textcontrol.com/tx-text-control-activex/reference/style/widoworphanlines-property/llms.txt)
- **Next:** [Count Property](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/count-property/llms.txt)
