TMS FNC RichEditor

Is there an equivalent for Line number? The Index values I have tried seem to be element indices.

Not sure how to interpret this question.
Do you need to know the line number of where the caret it?
Do you want to access per line?
Something else?

Apologies if I were unclear in the problem description, I just need the line number where caret is.

There is not an exact API for this but it could be achieved in the following way:

var
  re: TREElement;
  lineofcaret: integer;
begin
  lineofcaret := 0;

  if FNCRichEditor.Context.Content.Count = 0 then
    Exit;

  for re in FNCRichEditor.Context.Content do
  begin
    if (re is TLineBreakElement) then
      inc(lineofcaret);
    if re = FNCRichEditor.Caret.Element then
      break;
  end;
end;