Function LineEdit.select

Selects characters inside LineEdit between from and to. By default, from is at the beginning and to at the end.

void select (
  const(long) from = 0L,
  const(long) to = -1L
) nothrow @nogc;

text = "Welcome" select() # Will select "Welcome". select(4) # Will select "ome". select(2, 5) # Will select "lco".