CRichEditCtx.LineFromCharmethod
Gets the index of the line that contains the specified character index in a multiline rich edit control.
Syntax
FUNCTION LineFromChar (BYVAL index AS DWORD) AS LONG
Parameters
| Name | Description | |
|---|---|---|
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
Gets the index of the line that contains the specified character index in a multiline rich edit control.
Reference
- Defined in AfxNova/CRichEditCtx.inc:2798
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class