Help Center

CRichEditCtx.LineIndexmethod

Gets the character index of the first character of a specified line in a multiline rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION LineIndex (BYVAL nLine AS LONG) AS LONG

Parameters

NameDescription
nLineThe zero-based line number. A value of -1 specifies the current line number (the line that contains the caret).

Return value

The return value is the character index of the line specified in the nLine parameter, or it is -1 if the specified line number is greater than the number of lines in the edit control.

Description

Gets the character index of the first character of a specified line in a multiline rich edit control.

Reference

  • Defined in AfxNova/CRichEditCtx.inc:2808
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class