RichTextBox LoadFile


Node Information
Loads text from file to the specified RichTextBox.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Load IN RUN MULTIPLE FALSE FALSE
RichTextBox IN RichTextBox ONE FALSE FALSE
File IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.RichTextBox
{
    [IsNode("LoadFile")]
    public class RichTextBoxLoadFile : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Load");
        Port objectRef = new Port(PortType.IN, typeof(Korduene.Designer.Standard.RichTextBox), AcceptsLinks.ONE, "RichTextBox");
        Port file = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "File");
        public RichTextBoxLoadFile()
        {
            NodeType = NodeType.Method;
            this.Name = "RichTextBox LoadFile";
            AddPort(run);
            AddPort(objectRef);
            AddPort(file);
            Information = "Loads text from file to the specified RichTextBox.";
        }
        public override string Code()
        {
            return GetValue(objectRef) + ".LoadFile(" + GetValue(file) + ");";
        }
    }
}