setSelection method

void setSelection(
  1. int start,
  2. int end,
  3. Color bgColor,
  4. Color fgColor,
)

Sets the selected cell range from start to end with the given highlight colors.

Implementation

void setSelection(int start, int end, Color bgColor, Color fgColor) {
  _checkNotDisposed();
  _bindings.textBufferSetSelection(_ptr, start, end, bgColor, fgColor);
}