On Feb 8, 2008 9:04 AM, Darwin Reynoso <[EMAIL PROTECTED]> wrote:
> Hi,
> how do i select a line in a textview.
private void SelectLine(TextView view, int line) {
TextBuffer buffer = view.Buffer;
TextIter start = buffer.GetIterAtLine(line);
TextIter end = buffer.GetIterAtLine(line + 1);
buffer.SelectRange(start, end);
}
P.S. Documentation is a wonderful thing.
--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list