# Count Property

> 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.

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

---

Returns the number of [Style](https://docs.textcontrol.com/tx-text-control-activex/reference/style/llms-full.txt) objects in the collection which is the number of formatting styles contained in a Text Control document.

### Syntax

```vbscript
Styles.Count
```

### Data Types

Long.

### Limitations

Run time only.

### See Also

- [Styles.Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/item-method/llms-full.txt)
- [TXTextControl.Styles Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/styles-property/llms-full.txt)
- [Programming Category: Stylesheet Programming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/stylesheet-programming/llms-full.txt)

---

## Nearby

- **Previous:** [Styles Collection Object](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/llms-full.txt)
- **Next:** [Item Method](https://docs.textcontrol.com/tx-text-control-activex/reference/styles/item-method/llms-full.txt)
