Size


Node Information
Size, containing Width and Height.
General Information
• This node doesn't have other available options.
Visual
Visual

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

Source
namespace Korduene.KGraph.Nodes.Variables
{
    [IsNode("Size")]
    public class VarSize : Node
    {
        Port size = new Port(PortType.OUT, typeof(System.Drawing.Size), AcceptsLinks.MULTIPLE, "Value");
        public VarSize()
        {
            NodeType = NodeType.Variable;
            ReturnType = typeof(System.Drawing.Size);
            Name = "Size";
            size.Value = "0,0";
            AddPort(size);
            Information = "Size, containing Width and Height.";
        }
        public override string Code()
        {
            return "new System.Drawing.Size(" + size.Value + ")";
        }
    }
}