Returns one element of a MFNode event-out slot.
C# |
---|
public abstract Node Get1Value (
int index
) |
The following example gets the first node from the "children" field
of a Group node and prints its type to the console:
C# |
---|
Vrml.EAI.Node group = ...;
Vrml.EAI.Field.EventOutMFNode children_changed = (Vrml.EAI.Field.EventOutMFNode)group.GetEventOut("children_changed");
Vrml.EAI.Node node = children_changed.Get1Value(0);
if (node == null)
System.Console.WriteLine("null");
else
System.Console.WriteLine(node.Type);
|