CRichEdit.LineFromCharmethod
Retrieves the index of the line that contains the specified character index in a multiline rich edit control.
Syntax
FUNCTION LineFromChar (BYVAL hRichEdit AS HWND, BYVAL index AS DWORD) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
index | The character index of the character contained in the line whose number is to be retrieved. If this parameter is -1, LineFromChar retrieves either the line number of the current line (the line containing the caret) or, if there is a selection, the line number of the line containing the beginning of the selection. |
Return value
The return value is the zero-based line number of the line containing the character index specified by index.
Description
Retrieves the index of the line that contains the specified character index in a multiline rich edit control.
Reference
- Defined in AfxNova/CRichEdit.inc:832
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class