Sets one element of the MFNode event-in slot.
Declaring type: EventInMFNode
Namespace: Vrml.EAI.Field
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public abstract void Set1Value (
        int index,
        Node value
) 
Parameters
index
The index of the element, starting at 0
value
The new node.
Collapse/Expand Example
The following example demonstrates how to replace the first child of a Group node by a Shape node:
C#
Vrml.EAI.Node group = ...;
Vrml.EAI.Field.EventInMFNode set_children = (Vrml.EAI.Field.EventInMFNode)group.GetEventIn("set_children");
string vrmlCode =
    "Shape {\n" +
    "  appearance Appearance {\n" +
    "    material Material {}\n" +
    "  }\n" +
    "  geometry Box {}\n" +
    "}\n";
Vrml.EAI.Node[] nodes = browser.CreateVrmlFromString(vrmlCode);
set_children.Set1Value(0, nodes[0]);