Hi, > Some property exists to modify a Case in GtkEntry ?
GtkEntry doesn't have a property to alter the case of its contents, but
you can do the same thing using System.String's ToLower and ToUpper
functions. For instance,
Entry entry = new Entry ("Some Text");
entry.Text = entry.Text.ToLower (); // would give you "some text"
entry.Text = entry.Text.ToUpper (); // would give you "SOME TEXT"
And, if you want title case, you can use the current culture:
Entry entry = new Entry ("some text");
entry.Text = Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase
(entry.Text); // gives you "Some Text"
Hope this helps.
-Brad
--
Brad Taylor
Genome Software LLC
http://www.getcoded.net
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
