Walter,
how do I highlighting a number of nodes that are related to a node.
I have the following code and it only highlighting 1 node instead of nodes.
in my add node function i set the
node.UserObject = someID;
then on my goView_ObjectSingleClicked event I have the following
GoIconicNode n = e.GoObject.TopLevelObject as GoIconicNode;
if(node != null)
{
string nodeName = node.Text;
foreach (GoObject obj in goView.Document)
{
GoIconicNode me = obj as GoIconicNode;
if(me != null && me.UserObject.ToString() == nodeName)
goView.Selection.Select(me);
}
}
can you tell me why it only select 1 node instead of all the nodes? They shoud have the same UserObject id as the text of the node that is being clicked