EE_LINE_INDEX

Retrieves the character index of the first character of a specified line in EmEditor. A character index is the zero-based index of the character from the beginning of the edit control. You can send this message explicitly or by using the Editor_LineIndex inline function.

EE_LINE_INDEX
wParam = (WPARAM) (BOOL) bLogical;
lParam = (LPARAM) (int) yLine;

Parameters

bLogical

Specifies TRUE if the line number is by the logical coordinates. Specifies FALSE if the line number is by the display coordinates.

yLine

Specifies the zero-based line number. A value of -1 specifies the current line number (the line that contains the cursor).

Return Values

The return value is the character index of the line specified in the yLine parameter.