CRichEditCtx.GetLineCountmethod
Gets the number of lines in a multiline rich edit control.
Syntax
FUNCTION GetLineCount () AS LONG
Return value
The return value is an integer specifying the total number of text lines in the multiline edit control or rich edit control. If the control has no text, the return value is 1. The return value will never be less than 1.
Description
Gets the number of lines in a multiline rich edit control.
Remarks
The GetLineCount method retrieves the total number of text lines, not just the number of lines that are currently visible.
If the Wordwrap feature is enabled, the number of lines can change when the dimensions of the editing window change.
Reference
- Defined in AfxNova/CRichEditCtx.inc:2788
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class