Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Plug-in Reference > Inline Functions

EmEditor Plug-in Reference: Editor_DocGetLines

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions

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 );

Parameters

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.

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)

Return Values

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.

Copyright © 2003-2016 by Emurasoft, Inc.