# GetLineCount Method

> Returns the number of text lines currently contained in the TXTextControl as a Long value, counting every line of the text. The method has no parameters.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > GetLineCount Method
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinecount-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinecount-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinecount-method/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinecount-method/#syntax)
- [Return Value](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinecount-method/#return-value)
- [Data Types](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinecount-method/#data-types)
- [See Also](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinecount-method/#see-also)

---

## Nearby

- **Previous:** [GetCharRect Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getcharrect-method/llms.txt)
- **Next:** [GetLineFromChar Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinefromchar-method/llms.txt)
