SendToBack


Node Information
Sends the control to the back of z-order.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
SendToBack IN RUN MULTIPLE FALSE FALSE
IN Object ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.Control
{
    [IsNode("SendToBack")]
    public class ControlSendToBack : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "SendToBack");
        Port objectRef = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE);
        public ControlSendToBack()
        {
            this.Name = "SendToBack";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(objectRef);
            Information = "Sends the control to the back of z-order.";
        }
        public override string Code()
        {
            string code = string.Empty;
            if (objectRef.IsConnected)
            {
                foreach (var port in objectRef.ConnectedPorts)
                {
                    if (port != null)
                    {
                        code += port.ParentNode.ReferenceName + ".SendToBack();" + Environment.NewLine;
                    }
                }
            }
            return code;
        }
    }
}