public void addPage(xTabPage page) { TabPage tp = (TabPage)page.getControl(); mTab.TabPages.Add(tp); //tp.Parent = mTab; }
public xTabPage getPageAtIndex(int pageIndex) { TabPage page = mTab.TabPages[pageIndex]; xTabPage xPage = (xTabPage)page.Tag; return(xPage); }
public void selectPage(xTabPage page) { TabControl tabControl = (TabControl)this.getControl(); tabControl.SelectTab((TabPage)page.getControl()); }
public void removePage(xTabPage page) { TabPage tp = (TabPage)page.getControl(); mTab.TabPages.Remove(tp); }