Clipboard GetText


Node Information
Gets text that's currently in Clipboard. Click the info button to specify a data type.
General Information
• This node has other options, you can view them by clicking on the info button, this also means according to the node you might be able to add more ports than what is already listed.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Text OUT String MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Clipboard
{
    [IsNode("GetText")]
    public class GetText : Node
    {
        Port run = new Port(PortType.OUT, typeof(string), AcceptsLinks.MULTIPLE, "Text");
        public GetText()
        {
            Name = "Clipboard GetText";
            AddPort(run);
            OptionsAvilable = true;
            run.Instructions = "Clipboard.GetText()";
            Information = "Gets text that's currently in Clipboard. Click the info button to specify a data type.";
            InfoButton.Cursor = System.Windows.Input.Cursors.Hand;
            InfoButton.Click += InfoButton_Click;
        }
        private void InfoButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (PortCount < 2)="" {="" addport(new="" port(porttype.in,="" typeof(system.windows.forms.textdataformat),="" acceptslinks.one,="" "format",="" true)="" {="" isremovable="true" });="" }="" }="" public="" override="" void="" updateresults()="" {="" if="" (portcount=""> 1)
            {
                run.Instructions = "Clipboard.GetText(" + GetValue(Ports[1]) + ")";
            }
            else
            {
                run.Instructions = "Clipboard.GetText()";
            }
        }
    }
}