BCGSoft Professional Editor for MFC
int CBCGPEditCtrl::LineLength ( int  nLine = -1) const

Retrieves the length of a line in an edit control

Returns
The length (in characters) of the text line in the edit control.

Call this function to retrieve the length of a line in an edit control.

Use the LineIndex member function to retrieve a character index for a given line number within this CBCGPEditCtrl object.