Panel Remove Control


Node Information
Removes control from the specified Panel.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Remove IN RUN MULTIPLE FALSE FALSE
Panel IN Panel ONE FALSE FALSE
Control IN Object ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.Panel
{
    [IsNode("Remove Control")]
    public class PanelControlRemove : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Remove");
        Port val = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Control");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.Panel), AcceptsLinks.ONE, "Panel");
        public PanelControlRemove()
        {
            this.Name = "Panel Remove Control";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(val);
            Information = "Removes control from the specified Panel.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Controls.Remove(" + GetValue(val) + ");";
        }
    }
}