This property is not used. The owning control positions and sizes its pages.
Class: TabPageClass
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public override DockStyle Dock { get; set; }
Public Overrides Property Dock As DockStyleThis property is not used. The owning control positions and sizes its pages.
private void buttonAdd_Click(object sender, EventArgs e) {
++addedTabs;
TabClass tab = sftTabs1.Tabs.Add("Added " + addedTabs.ToString());
tab.CloseButton = TabCloseButtonOptionalEnum.Always;
// the page of the new tab is created by the control
Label info = new Label();
info.Dock = DockStyle.Fill;
info.Padding = new Padding(12);
info.Text = "This tab was added by the Add Tab button. Its close button removes it.";
tab.Page.Controls.Add(info);
SetPageColors();
tab.Select();
}
Private Sub ButtonAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonAdd.Click
addedTabs += 1
Dim tab As TabClass = SftTabs1.Tabs.Add("Added " + addedTabs.ToString())
tab.CloseButton = TabCloseButtonOptionalEnum.Always
' the page of the new tab is created by the control
Dim info As New Label()
info.Dock = DockStyle.Fill
info.Padding = New Padding(12)
info.Text = "This tab was added by the Add Tab button. Its close button removes it."
tab.Page.Controls.Add(info)
SetPageColors()
tab.Select()
End Sub
See Also TabPageClass Class | Classes | SftTabs/NET 3.0