Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CEdit::LineLength
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int LineLength( int nLine = -1 ) const;
 
  Parameter   Description
 
  <nLine>     This parameter specifies the character index of a character
              in the line whose length is to be retrieved. If this
              parameter is -1, the length of the current line (the line
              that contains the caret) is returned, not including the
              length of any selected text within the line.
 
              When LineLength is called for a single-line edit control,
              this parameter is ignored.
 
  Remarks
 
  Retrieves 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 a multiple-line edit control.
 
  Return Value
 
  When LineLength is called for a multiple-line edit control, the return
  value is the length (in bytes) of the line specified by <nLine>. When
  LineLength is called for a single-line edit control, the return value is
  the length (in bytes) of the text in the edit control.
 
  See Also
 
  CEdit::LineIndex, EM_LINELENGTH
 
 
                                     -♦-