mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 02:25:40 +00:00
c1444f3883
Hasselmann <mathias.hasselmann@gmx.de>. svn path=/trunk/gtk-sharp/; revision=12564
25 lines
428 B
Plaintext
25 lines
428 B
Plaintext
public string Text {
|
|
get {
|
|
return GetText (StartIter, EndIter, false);
|
|
}
|
|
|
|
set {
|
|
gtk_text_buffer_set_text (Handle, value,
|
|
System.Text.Encoding.Default.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;
|
|
}
|