TabControl SelectTabByIndex


Node Information
Makes the tab with the specified index 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
Index IN Int32 ONE FALSE FALSE

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