/// <summary> /// Initializes a new instance of the TabControl class. /// </summary> public TabControl() { tab_strip = Controls.AddImplicitControl(new TabStrip { Dock = DockStyle.Top }); tab_strip.SelectedTabChanged += TabStrip_SelectedTabChanged; TabPages = new TabPageCollection(this, tab_strip); }
public Ribbon() { TabPages = new RibbonTabPageCollection(this); Dock = DockStyle.Top; TabStrip = new TabStrip { Dock = DockStyle.Top }; TabStrip.SelectedTabChanged += (o, e) => SetSelectedTab(); Controls.Add(TabStrip); }
internal TabStripItemCollection(TabStrip owner) { this.owner = owner; }
internal TabPageCollection(TabControl tabControl, TabStrip tabStrip) { tab_control = tabControl; tab_strip = tabStrip; }
internal TabStripItemCollection(TabStrip tabStrip) { tab_strip = tabStrip; }
internal RibbonTabPageCollection(Ribbon owner, TabStrip tabStrip) { this.owner = owner; tab_strip = tabStrip; }
internal TabPageCollection(TabControl owner, TabStrip tabStrip) { this.owner = owner; tab_strip = tabStrip; }