Clipboard SetText


Node Information
Clears Clipboard and adds text 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
Text IN String ONE FALSE FALSE
Format IN TextDataFormat ONE FALSE FALSE

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