RichTextBox SaveFile


Node Information
Saves all the text in the specified RichTextBox to a file.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Save 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("SaveFile")]
    public class RichTextBoxSaveFile : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Save");
        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 RichTextBoxSaveFile()
        {
            NodeType = NodeType.Method;
            this.Name = "RichTextBox SaveFile";
            AddPort(run);
            AddPort(objectRef);
            AddPort(file);
            Information = "Saves all the text in the specified RichTextBox to a file.";
        }
        public override string Code()
        {
            return GetValue(objectRef) + ".SaveFile(" + GetValue(file) + ");";
        }
    }
}