SECEditController::LineFromChar
intSECEditController::LineFromChar(intnIndex= -1, int*pCol= NULL)
Retrieves the line number of the line that contains the specified character index.
Defined in: SECEditControllerCEditEmul.cpp
Return Value
The zero-based line number of the line containing the character index specified by nIndex. If nIndex is -1, the number of the line that contains the first character of the selection is returned. If there is no selection, the current line number is returned.
Parameters
nIndex
Contains the zero-based index value for the desired character in the text of the edit control, or contains -1. If nIndex is -1, it specifies the current line, that is, the line that contains the caret.
pCol
Receives the zero based column number of the position of the given index.
Developer Notes
This method is provided as a part of the Objective Edit CEdit compatiblity layer.The pCol parameter has been added with a default value of NULL. If pCol points to an integer, it will be filled with the value of the column. To emulate CEdit behavior, leave this parameter to NULL.
See Also