[Gtk-sharp-list] textbuffer text as string with markup.

jmauster evan.arnold at gmail.com
Fri Jun 12 11:11:46 EDT 2009


Hi, 

Let's say I have a TextView called textNote. And let's say that there are
some tags that have been applied (bold, italics). 

When I use this code in an eventhandler: 

string text = textNote.Buffer.Text;
textNote.Buffer.Text = string.Empty;
textNote.Buffer.Text = text;

I end up losing the markup. Why is that? How can I preserve the markup in a
string?

Thanks,

Evan
-- 
View this message in context: http://www.nabble.com/textbuffer-text-as-string-with-markup.-tp23991021p23991021.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list