String


Node Information
String, any type of text.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Value OUT String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Variables
{
    [IsNode("String")]
    public class VarString : Node
    {
        Port val = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "Value");
        [Editor(typeof(System.ComponentModel.Design.MultilineStringEditor), typeof(System.Drawing.Design.UITypeEditor))]
        public string Value
        {
            set { val.Value = value; }
            get { return val.Value; }
        }
        public VarString()
        {
            NodeType = KGraph.NodeType.Variable;
            ReturnType = typeof(string);
            val.Value = "0";
            this.Name = "String";
            this.AddPort(val);
            Information = "String, any type of text.";
        }
        public override string Code()
        {
            return val.Value;
        }
    }
}