TabControl Add Page


Node Information
Adds page to the specified TabControl.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Add IN RUN MULTIPLE FALSE FALSE
TabControl IN TabControl ONE FALSE FALSE
Text IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.TabControl
{
    [IsNode("Add TabPage")]
    public class TabControlTabPagesAdd : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Add");
        Port val = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Text");
        Port control = new Port(PortType.IN, typeof(Korduene.Designer.Standard.TabControl), AcceptsLinks.ONE, "TabControl");
        public string Value
        {
            set { val.Value = value.ToString(); }
            get { return GetRuntimeValue(val); }
        }
        public TabControlTabPagesAdd()
        {
            this.Name = "TabControl Add Page";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(control);
            AddPort(val);
            Information = "Adds page to the specified TabControl.";
        }
        public override string Code()
        {
            return GetValue(control) + ".TabPages.Add(" + GetValue(val) + ");";
        }
    }
}