Defines how tabs are distributed over multiple rows.
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET
public enum TabLayoutModeEnum;
Public Enum TabLayoutModeEnum
| Name | Description |
|---|---|
| Distribute | Tabs are distributed evenly over the rows defined by the SftTabs.Rows property: each row has the same number of tabs, or rows of about the same width when a row would not fit otherwise. |
| Flow | Each row is filled with as many tabs as fit before the next row is used; the SftTabs.Rows property defines the number of rows. |
| AutoFlow | Rows are added as needed so that all tab labels fit, within the limits of the SftTabs.AutoFlowMinRows and SftTabs.AutoFlowMaxRows properties. |
Defines how tabs are distributed over multiple rows.
The SftTabs.LayoutMode property uses this enumeration. It has no effect when tabs are scrollable.
foreach (object value in Enum.GetValues(current.GetType()))
combo.Items.Add(value);
combo.SelectedItem = current;
}
// options that have no effect with the current settings are disabled
private void UpdateOptions() {
bool scrolling = sftTabs1.Scrolling.Enabled;
bool autoFlow = sftTabs1.LayoutMode == TabLayoutModeEnum.AutoFlow;
bool oneRow = scrolling || (sftTabs1.Rows == 1 && !autoFlow);
// tabs scroll in one row and not while they fill the row
checkScrolling.Enabled = sftTabs1.Rows == 1 && !sftTabs1.FillComplete;
labelRows.Enabled = numericRows.Enabled = !scrolling && !autoFlow;
labelLayout.Enabled = comboLayout.Enabled = !scrolling;
checkFill.Enabled = !scrolling;
// tabs are reordered and the buttons are shown in one row only
combo.Items.Add(value)
Next
combo.SelectedItem = current
End Sub
' options that have no effect with the current settings are disabled
Private Sub UpdateOptions()
Dim scrolling As Boolean = SftTabs1.Scrolling.Enabled
Dim autoFlow As Boolean = SftTabs1.LayoutMode = TabLayoutModeEnum.AutoFlow
Dim oneRow As Boolean = scrolling OrElse (SftTabs1.Rows = 1 AndAlso Not autoFlow)
' tabs scroll in one row and not while they fill the row
CheckScrolling.Enabled = SftTabs1.Rows = 1 AndAlso Not SftTabs1.FillComplete
LabelRows.Enabled = Not scrolling AndAlso Not autoFlow
NumericRows.Enabled = LabelRows.Enabled
LabelLayout.Enabled = Not scrolling
ComboLayout.Enabled = Not scrollingSee Also Classes | SftTabs/NET 3.0