HeaderPane
Main
Hide
Share Link
Print

AllowReordering Property, SftTabs Class

Defines whether the user can reorder the tabs by dragging them.

Class: SftTabs
Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Syntax

public bool AllowReordering { get; set; }
Public Property AllowReordering As Boolean

Value

True if the user can reorder the tabs, otherwise False.

The default value is False.

Comments

Defines whether the user can reorder the tabs by dragging them.

Tabs can be reordered only while the control shows a single row of tabs.

Examples

C# View entire sample code

            FillCombo(comboLayout, sftTabs1.LayoutMode);
            checkScrolling.Checked = sftTabs1.Scrolling.Enabled;
            numericRows.Value = sftTabs1.Rows;
            checkFixed.Checked = sftTabs1.Fixed;
            checkFill.Checked = sftTabs1.FillComplete;
            checkBold.Checked = sftTabs1.BoldSelected;
            checkFlyby.Checked = sftTabs1.FlybyHighlight;
            checkImages.Checked = true;
            checkReorder.Checked = sftTabs1.AllowReordering;
            checkButtons.Checked = sftTabs1.Buttons.CloseButton;
            checkToolTips.Checked = sftTabs1.ShowToolTips;
            loading = false;

            foreach (TabClass tab in sftTabs1.Tabs) {
                if (tab.Image != null)
                    tabImages.Add(tab, tab.Image);

VB.NET View entire sample code

    FillCombo(ComboLayout, SftTabs1.LayoutMode)
    CheckScrolling.Checked = SftTabs1.Scrolling.Enabled
    NumericRows.Value = SftTabs1.Rows
    CheckFixed.Checked = SftTabs1.Fixed
    CheckFill.Checked = SftTabs1.FillComplete
    CheckBold.Checked = SftTabs1.BoldSelected
    CheckFlyby.Checked = SftTabs1.FlybyHighlight
    CheckImages.Checked = True
    CheckReorder.Checked = SftTabs1.AllowReordering
    CheckButtons.Checked = SftTabs1.Buttons.CloseButton
    CheckToolTips.Checked = SftTabs1.ShowToolTips
    loading = False

    For Each tab As TabClass In SftTabs1.Tabs
        If tab.Image IsNot Nothing Then
            tabImages.Add(tab, tab.Image)

See Also SftTabs Class | Classes | SftTabs/NET 3.0