mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 05:25:34 +00:00
31a519a4cd
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
25 lines
425 B
Plaintext
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;
|
|
}
|