private DevComponents.DotNetBar.TabControl aTabControl;
((System.ComponentModel.ISupportInitialize)(aTabControl)).BeginInit();
DevComponents.DotNetBar.TabItem aTabItem=new DevComponents.DotNetBar.TabItem(this.components);
DevComponents.DotNetBar.TabControlPanel aTabControlPanel=new DevComponents.DotNetBar.TabControlPanel();
aTabControlPanel.Controls.Add("添加到板面的中的组件");
aTabControlPanel.Dock = System.Windows.Forms.DockStyle.Fill;
aTabControlPanel.Location = new System.Drawing.Point(0, 0);
aTabControlPanel.Padding = new System.Windows.Forms.Padding(1);
aTabControlPanel.Size = new System.Drawing.Size(778, 289);
aTabControlPanel.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(242)))), ((int)(((byte)(241)))));
aTabControlPanel.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(231)))), ((int)(((byte)(227)))));
aTabControlPanel.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
aTabControlPanel.Style.BorderColor.Color = System.Drawing.SystemColors.ControlDarkDark;
aTabControlPanel.Style.BorderSide = ((DevComponents.DotNetBar.eBorderSide)(((DevComponents.DotNetBar.eBorderSide.Left | DevComponents.DotNetBar.eBorderSide.Right)
| DevComponents.DotNetBar.eBorderSide.Top)));
aTabControlPanel.Style.GradientAngle = -90;
aTabControlPanel.TabIndex = 1;
//关联组件
aTabControlPanel.TabItem = aTabItem;
aTabItem.AttachedControl = aTabControlPanel;
//组件名及显示的内容
aTabControlPanel.Name="板面名";
aTabControlPanel.Text="板面显示内容";
aTabItem.Name = "标签名";
aTabItem.Text = "标签显示内容";
//添加组件到标签组件中
aTabControl.Controls.Add(aTabControlPanel);
aTabControl.Tabs.Add(aTabItem);
aTabControl.Refresh();
//清除单个标签
aTabControl.Tabs.Remove(aTabItem);
aTabControl.Controls.Remove(aTabItem.AttachedControl);
//清除所有标签
aTabControl.Tabs.Clear();
aTabControl.Controls.Clear();
//判断是否为标签板面
if(obj is DevComponents.DotNetBar.TabControlPanel)
//判断是否为标签
if(obj is DevComponents.DotNetBar.TabItem)