int SECEditController::LineIndex(int nLine = -1, int nCol = 0)
Retrieves the character index of a line.
Defined in: SECEditControllerCEditEmul.cpp
Return Value
The character index of the line specified in nLine or -1 if the specified line number is greater then the number of lines in the edit control.
nLine
Contains the index value for the desired line in the text of the edit control, or contains -1. If nLine is -1, it specifies the current line, that is, the line that contains the caret.
nCol
Contains the column index of the desired line.
The paramter nCol has been added with a default of 0. To emulate CEdit behavior, omit this parameter. If supplied, this value will be used in calculating the result.
See Also