# GetCharFromLine Method

> Returns the character position of the first character of the line with the given zero-based index, counted from the start of the text; -1 if it doesn't exist.

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

---

## On This Page

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

---

## Nearby

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