Wed, 21 May 2003 10:55:19 +0200 (CEST)
I am trying to move the cursor to a given line in a textbuffer. I have
managed to move it to the last line with IterEnd, I just cant figure this
out please help. I am getting the line number as a string from a GtkEntry
and need to convert that into an int and then move the cursor to that line.
I wold also be much obliged if someone could show me how to scroll the
window to the cursor.
//TextIter it2 = App.editor.buf.EndIter;
//(int) line=goto_entry.Text + 0;
//int line= 3;
//it = App.editor.buf.GetIterAtLine(out it, line);
it = App.editor.buf.EndIter;
Console.WriteLine(goto_entry.Text + ": " + it);