This property is not intended to be used from your code. The owning control positions and sizes its pages.
Class: TabPageClass
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public new Size Size { get; set; }
Public Shadows Property Size As SizeThis property is not intended to be used from your code. The owning control positions and sizes its pages.
tab.Remove();
}
}
private void sftTabs1_MinimizeButtonClicked(object sender, EventArgs e) {
// the control is reduced to its tabs; the panel behind it becomes visible
if (minimized) return;
Rectangle strip = sftTabs1.StripBounds;
Size border = sftTabs1.Size - sftTabs1.ClientSize;
switch (sftTabs1.TabPosition) {
case TabPositionEnum.Top:
sftTabs1.Dock = DockStyle.Top;
sftTabs1.Height = strip.Height + border.Height;
break;
case TabPositionEnum.Bottom:
sftTabs1.Dock = DockStyle.Bottom;
tab.Remove()
End If
End Sub
Private Sub SftTabs1_MinimizeButtonClicked(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTabs1.MinimizeButtonClicked
' the control is reduced to its tabs; the panel behind it becomes visible
If minimized Then Return
Dim strip As Rectangle = SftTabs1.StripBounds
Dim border As Size = SftTabs1.Size - SftTabs1.ClientSize
Select Case SftTabs1.TabPosition
Case TabPositionEnum.Top
SftTabs1.Dock = DockStyle.Top
SftTabs1.Height = strip.Height + border.Height
Case TabPositionEnum.Bottom
SftTabs1.Dock = DockStyle.Bottom
SftTabs1.Height = strip.Height + border.HeightSee Also TabPageClass Class | Classes | SftTabs/NET 3.0