[Gtk-sharp-list] On a ListStore know how many item it contains....

Peter Johanson peter at peterjohanson.com
Thu May 20 10:06:36 EDT 2010


Francesco,

int size = list_store.IterNChildren();

or

int size = list_store.IterNChildren (TreeIter.Zero);

Should work for you.

-pete

On Thu, May 20, 2010 at 07:01:01AM -0700, fpiraneo wrote:
> 
> ....without making any foreach loop... may be I'm the only one who needs to
> know the size of it's list? :-)
> 
> Bye!
> Francesco
> -- 
> View this message in context: http://mono.1490590.n4.nabble.com/On-a-ListStore-know-how-many-item-it-contains-tp2224588p2224588.html
> Sent from the Mono - Gtk# mailing list archive at Nabble.com.
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 

-- 



More information about the Gtk-sharp-list mailing list