Function EditableContent.lineRange

returns text range for whole line lineIndex

TextRange lineRange(
  int lineIndex
);