Clipboard ContainsText


Node Information
Checks Clipboard to see if it contains text data. Click the info button to specify a data type.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
ContainsText OUT Boolean MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Win32.Clipboard
{
    [IsNode("ContainsText")]
    public class ContainsText : Node
    {
        Port run = new Port(PortType.OUT, typeof(bool), AcceptsLinks.MULTIPLE, "ContainsText");
        public ContainsText()
        {
            Name = "Clipboard ContainsText";
            AddPort(run);
            run.Instructions = "Clipboard.ContainsText()";
            Information = "Checks Clipboard to see if it contains text data. 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.ContainsText(" + GetValue(Ports[1]) + ")";
            }
            else
            {
                run.Instructions = "Clipboard.ContainsText()";
            }
        }
    }
}