Ryujinx-GtkSharp/gtk/TextBuffer.custom
Duncan Mak 31a519a4cd * gtk/ColorSelectionDialog.custom: Rename the inner Button class
to be ColorSelectionButton to avoid a name clash in the doc generator.

* gtk/TextBuffer.custom: Fix the Text property. Patch from Mathias
Hasselmann <mathias.hasselmann@gmx.de>.

svn path=/trunk/gtk-sharp/; revision=12572
2003-03-16 00:08:18 +00:00

25 lines
425 B
Plaintext

public string Text {
get {
return GetText (StartIter, EndIter, false);
}
set {
gtk_text_buffer_set_text (Handle, value,
System.Text.Encoding.UTF8.GetByteCount(value));
}
}
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;
}