CRichEdit.LineIndexmethod
Retrieves the character index of the first character of a specified line in a multiline rich edit control.
Syntax
FUNCTION LineIndex (BYVAL hRichEdit AS HWND, BYVAL nLine AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
nLine | The zero-based line number. A value of -1 specifies the current line number (the line that contains the caret). |
Return value
The return value is the character index of the line specified in the nLine parameter, or it is -1 if the specified line number is greater than the number of lines in the edit control.
Description
Retrieves the character index of the first character of a specified line in a multiline rich edit control.
Reference
- Defined in AfxNova/CRichEdit.inc:841
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class