The area of the tab strip in client coordinates.
Class: SftTabs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public Rectangle StripBounds { get; }
Public ReadOnly Property StripBounds As RectangleThe rectangle.
The area of the tab strip in client coordinates.
tabImages.Remove(tab);
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:
tabImages.Remove(tab)
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.BottomSee Also SftTabs Class | Classes | SftTabs/NET 3.0