# 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
- **137 words**
- **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

---

Returns the number of text lines in a Text Control.

### Syntax

```vbscript
TXTextControl.GetLineCount
```

### Return Value

The method returns the number of text lines.

### Data Types

| Name | Data type |
|---|---|
| Return value | Long |

### See Also

- [GetLineFromChar Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinefromchar-method/llms-full.txt)
- [GetLineFromPoint Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/getlinefrompoint-method/llms-full.txt)
- [Programming Category: Line and Character Operations](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/line-character/llms-full.txt)

---

## Nearby

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