[Gtk-sharp-list] Help, textview

Darwin Reynoso monouser at gmail.com
Mon Feb 11 17:37:50 EST 2008


as you may or may not know sometimes the documention is not clear
enough for a newbie
to figure things out but thanks to you and Anthony now i got it.

ps: monodevelop is a great app that i enjoy using but i feel we need
more examples for newbies like me any way you guys keep up the great
job that you have been doing

thanks

On 2/11/08, Chris Howie <cdhowie at gmail.com> wrote:
> On Feb 8, 2008 9:04 AM, Darwin Reynoso <monouser at gmail.com> 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
>


More information about the Gtk-sharp-list mailing list