TextBox Clear


Node Information
Clears all the text in the specified TextBox.
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
TextBox IN TextBox ONE FALSE FALSE

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