GtkSharp/gtk/TextBuffer.custom
Mike Kestner 11a68cfecf 2003-02-26 Charles Iliya Krempeaux <charles@reptile.ca>
* gtk/TextBuffer.custom : Added method, named
 	  "GetIterAtOffset" to wrap C API procedure
 	  "gtk_text_buffer_get_iter_at_offset" in a
 	  more expected way.

svn path=/trunk/gtk-sharp/; revision=12022
2003-02-27 05:41:32 +00:00

24 lines
387 B
Plaintext

public string Text {
get {
return GetText (StartIter, EndIter, false);
}
set {
gtk_text_buffer_set_text (Handle, value, value.Length);
}
}
public void Clear ()
{
Delete (StartIter, EndIter);
}
public Gtk.TextIter GetIterAtOffset(int char_offset)
{
Gtk.TextIter iter;
gtk_text_buffer_get_iter_at_offset(Handle, out iter, char_offset);
return iter;
}