TextBox ScrollToCaret


Node Information
Scrolls to the end of text in the specified TextBox.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
ScrollToCaret IN RUN MULTIPLE FALSE FALSE
TextBox IN TextBox ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.TextBox
{
    [IsNode("ScrollToCaret")]
    public class TextBoxScrollToCaret : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "ScrollToCaret");
        Port objectRef = new Port(PortType.IN, typeof(Korduene.Designer.Standard.TextBox), AcceptsLinks.ONE, "TextBox");
        public TextBoxScrollToCaret()
        {
            NodeType = NodeType.Method;
            this.Name = "TextBox ScrollToCaret";
            AddPort(run);
            AddPort(objectRef);
            Information = "Scrolls to the end of text in the specified TextBox.";
        }
        public override string Code()
        {
            return GetValue(objectRef) + ".ScrollToCaret();";
        }
    }
}