Gtk.TextBuffer.SelectRange Method
This function moves the insert and selection_bound marks simultaneously.

Syntax

public void SelectRange (TextIter ins, TextIter bound)

Parameters

ins
a Gtk.TextIter
bound
a Gtk.TextIter

Remarks

If you move them in two steps with TextBuffer.MoveMark, you will temporarily select a region in between their old and new locations, which can be pretty inefficient since the temporarily-selected region will force stuff to be recalculated. This function moves them as a unit, which can be optimized.

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)
Since: Gtk# 2.4