Editor_DocGetLines¶
Retrieves the number of the lines for the specified document. You can use this inline function or explicitly send the EE_GET_LINES message.
Editor_GetLines( HWND hwnd, int iDoc, int nLogical );
Editor_GetLines( HWND hwnd, HEEDOC hDoc, int nLogical ); hwnd Specifies the window handle of the view or frame of EmEditor. iDoc Specifies the index of the target document. If -1 is specified, the currently active document will be targeted. hDoc Specifies the handle to the target document. If NULL is specified, the currently active document will be targeted. nLogical Specifies one of the following Values. Value Meaning POS_VIEW Display Coordinates POS_LOGICAL_A Logical Coordinates (Count double-byte characters as two) POS_LOGICAL_W Logical Coordinates (Count double-byte characters as one) Returns the number of the lines in EmEditor. If the last line is ends with
a return, the line will be counted. If the text is empty, returns one.Parameters¶
Return Values¶