TabControl SelectTabByName


Node Information
Makes the tab with the specified name the current tab.
General Information
• This node doesn't have other available options.
Visual
Visual

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

Source
namespace Korduene.KGraph.Nodes.UI.TabControl
{
    [IsNode("SelectTabByName")]
    public class TabControlSelectTabByName : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Select");
        Port a = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Name");
        Port objectRef = new Port(PortType.IN, typeof(Korduene.Designer.Standard.TabControl), AcceptsLinks.ONE, "TabControl");
        public string Value
        {
            set { a.Value = value.ToString(); }
            get { return GetRuntimeValue(a); }
        }
        public TabControlSelectTabByName()
        {
            this.Name = "TabControl SelectTabByName";
            this.NodeType = NodeType.Method;
            AddPort(run);
            AddPort(objectRef);
            AddPort(a);
            Information = "Makes the tab with the specified name the current tab.";
        }
        public override string Code()
        {
            return GetValue(objectRef) + ".SelectTab(" + GetValue(a) + ");";
        }
    }
}