NodeStore

View: New views
2 Messages — Rating Filter:   Alert me  

NodeStore

by Vladimir Giszpenc-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Is there an easy way to check if a NodeStore contains a Node?

I see the Data property but I am not sure if it is what I need.  There
is Add and Remove, but no Contains on the NodeStore itself.

Is this omission by design and is it something that could change?

Thanks!

Vlad
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: NodeStore

by countcb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Vladimir Giszpenc-2 wrote:
Is there an easy way to check if a NodeStore contains a Node?
Hi Vlad.

You could get an Enumarator with yourNodeStore.GetEnumerator() and check if there are nodes in it.

Check this links for more info:
http://www.go-mono.com/docs/index.aspx?link=T%3aGtk.NodeStore%2f*
http://www.go-mono.com/docs/index.aspx?link=T%3aSystem.Collections.IEnumerator
http://www.go-mono.com/docs/index.aspx?link=T%3aSystem.Collections.IEnumerator%2f*