Function TextEdit.cursorSetLine

Moves the cursor at the specified line index. If adjust_viewport is set to true, the viewport will center at the cursor position after the move occurs. If can_be_hidden is set to true, the specified line can be hidden using setLineAsHidden.

void cursorSetLine (
  const(long) line,
  const(bool) adjust_viewport = true,
  const(bool) can_be_hidden = true,
  const(long) wrap_index = 0L
) nothrow @nogc;