TreeView Add Nodes


Node Information
Adds nodes to the specified TreeView.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Add IN RUN MULTIPLE FALSE FALSE
TreeView IN TreeView ONE FALSE FALSE
List IN List<Object> ONE TRUE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.TreeView
{
    [IsNode("Add Nodes")]
    public class TreeViewAddRange : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Add");
        Port val = new Port(PortType.IN, typeof(List<object>), AcceptsLinks.ONE, "List");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.TreeView), AcceptsLinks.ONE, "TreeView");
        public TreeViewAddRange()
        {
            this.Name = "TreeView Add Nodes";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(val);
            Information = "Adds nodes to the specified TreeView.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Nodes.AddRange((" + GetValue(val) + ").ToArray());";
        }
    }
}

</object>