Point


Node Information
Point, containing X and Y.
General Information
• This node doesn't have other available options.
Visual
Visual

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

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