TreeView CollapseAll


Node Information
Collapses all the nodes from the specified ListBox.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
CollapseAll IN RUN MULTIPLE FALSE FALSE
TreeView IN TreeView ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.TreeView
{
    [IsNode("Collapse All")]
    public class TreeViewCollapseAll : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "CollapseAll");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.TreeView), AcceptsLinks.ONE, "TreeView");
        public TreeViewCollapseAll()
        {
            this.Name = "TreeView CollapseAll";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            Information = "Collapses all the nodes from the specified ListBox.";
        }
        public override string Code()
        {
            return GetValue(control) + ".CollapseAll();";
        }
    }
}