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 use this inline function or explicitly send the EE_LINE_INDEX message.
Editor_LineIndex( HWND hwnd, BOOL bLogical, int yLine );
Specifies the window handle of the view or frame of EmEditor.
Specifies TRUE if the line number is by the logical coordinates. Specifies FALSE if the line number is by the display coordinates.
Specifies the zero-based line number. A value of -1 specifies the current line number (the line that contains the cursor).
The return value is the character index of the line specified in the yLine parameter.
Send feedback on this topic to Emurasoft