Clipboard SetData


Node Information
Clears Clipboard and adds data in specified format.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
SetData IN RUN MULTIPLE FALSE FALSE
Data IN Object ONE FALSE FALSE
Format IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Clipboard
{
    [IsNode("SetData")]
    public class SetData : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "SetData");
        Port format = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Format");
        Port data = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Data");
        public SetData()
        {
            Name = "Clipboard SetData";
            AddPort(run);
            AddPort(data);
            AddPort(format);
            Information = "Clears Clipboard and adds data in specified format.";
        }
        public override void UpdateResults()
        {
            run.Instructions = "Clipboard.SetData(" + GetValue(format) + "," + GetValue(data) + ");";
        }
    }
}