ComboBox Clear


Node Information
Clears out all the items from the specified ComboBox.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Clear IN RUN MULTIPLE FALSE FALSE
ComboBox IN ComboBox ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.ComboBox
{
    [IsNode("Clear")]
    public class ComboBoxClear : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Clear");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.ComboBox), AcceptsLinks.ONE, "ComboBox");
        public ComboBoxClear()
        {
            this.Name = "ComboBox Clear";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            Information = "Clears out all the items from the specified ComboBox.";
        }
        public override string Code()
        {
            return GetValue(control) + ".Items.Clear();";
        }
    }
}