HeaderPane
Main
Hide
Share Link
Print

TabClass Class

An instance of the TabClass class describes one tab of a SftTabs/NET control.

A tab's contents are described by its CellBaseClass.Parts collection, which the TabClass.Text and TabClass.Image properties access for the common case of a label and an image. A tab's properties can be set once the tab has been added to the control's SftTabs.Tabs collection; the TabClass.Text and TabClass.Image properties can also be set before.

Namespace: Softelvdm.SftTabsNET
Assembly: Softelvdm.SftTabsNET

Inheritance

Syntax

public class TabClass : Softelvdm.SftTabsNET.Controls.CellBaseClass,
    System.ComponentModel.INotifyPropertyChanged;
Public Class TabClass
    Inherits Softelvdm.SftTabsNET.Controls.CellBaseClass
    Implements System.ComponentModel.INotifyPropertyChanged

Constructors

PublicTabClassInitializes a new instance of the TabClass class.

Properties

PublicAllowMergeFromPreviousThis property is not used for tabs. Tabs are not merged.
PublicAllowMergeFromUpperThis property is not used for tabs. Tabs are not merged.
PublicAppearanceThis property is not used for tabs. The control's SftTabs.Look property defines how tabs are drawn.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassBackColorDefines the background color of the cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassBackColorEndDefines the ending background color of the cell, when a gradient fill is used.
PublicBackColorHotDefines the tab's background color while the mouse cursor is over it.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassBackColorSelectedDefines the background color of the cell, if the cell is selected.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassBackColorSelectedEndDefines the ending background color of the cell, if the cell is selected, when a gradient fill is used.
PublicBoundsThe tab's location and size in client coordinates of the control.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassCanMergeWithPreviousReturns whether this cell is empty and can be merged with the previous adjacent cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassCanMergeWithUpperReturns whether this cell is empty or has the same cell text and can be merged with the cell above.
PublicCloseButtonDefines when the tab shows its own close button.
PublicCloseButtonEnabledDefines whether the tab's close button is enabled.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassDimensionsReturns the dimensions of the cell.
PublicDisplayedIndicates whether the tab is currently displayed.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEnabledReturns whether this cell is enabled.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEvaluatedAllowMergeFromPreviousReturns whether this cell is eligible to be used for cell merging by the previous adjacent cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEvaluatedAllowMergeFromUpperReturns whether this cell is eligible to be used for cell merging by the cell above.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEvaluatedAppearanceReturns the background appearance of the cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEvaluatedMergeWithLowerReturns whether this cell is eligible to merge with the cell below.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEvaluatedMergeWithNextReturns whether this cell is eligible to merge with the next adjacent cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEvaluatedOrientationReturns the cell parts orientation.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassEvaluatedSortIndicatorPositionReturns the sorting indicator position of the cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassFirstPartReturns the first part object of the cell's parts collection.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassForeColorDefines the foreground color of the cell.
PublicForeColorHotDefines the tab's text color while the mouse cursor is over it.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassForeColorSelectedDefines the foreground color of the cell, if the cell is selected.
PublicImageDefines the tab's image.
PublicImageIndexDefines the index of the tab's image in the image list.
PublicImageListDefines the image list providing the tab's image.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassImagePartReturns the first ImagePartClass object of the cell's parts collection.
PublicIndexThe position of the tab in the control's SftTabs.Tabs collection.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassIsEmptyReturns whether this cell is empty.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassIsSubordinateReturns whether this cell is part of another cell, due to cell merging.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassLowerMainCellReturns the next main cell below the current cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassLowerSubordinateCellReturns the cell below if the current cell merges into that cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassMainCellReturns the main cell, if the current cell is part of the main cell due to cell merging.
PublicMergeWithLowerThis property is not used for tabs. Tabs are not merged.
PublicMergeWithNextThis property is not used for tabs. Tabs are not merged.
PublicNameDefines the tab's name.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassNextMainCellReturns the next main cell following the current cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassNextSubordinateCellReturns the following adjacent cell if the current cell merges into that cell.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassOrientationDefines the cell parts orientation.
PublicOwningControlThe control owning this tab.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassOwningItemReturns the owning item of the cell.
PublicPageThe page hosting the controls displayed while the tab is selected.
PublicPageBackColorDefines the background color of the tab's page.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassPartsReturns the cell's parts collection.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassPreviousMainCellReturns the next main cell preceding the current cell.
PublicRealHeightThe height of the tab as displayed.
PublicRealWidthThe width of the tab as displayed.
PublicRowThe row in which the tab is displayed.
PublicSelectedDefines whether the tab is the selected tab.
PublicSortIndicatorPositionThis property is not used for tabs. Sorting indicators are not supported.
PublicSortStatusThis property is not used for tabs. Sorting indicators are not supported.
PublicTagDefines an application-specific object.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassTagObjectDefines application-specific data.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassTagObjectsDefines application-specific data.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassTagStringDefines an application-specific string.
PublicTextDefines the tab's text.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassTextPartReturns the first TextPartClass object of the cell's parts collection.
PublicToolTipDefines the tab's tooltip text.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassUpperMainCellReturns the next main cell above the current cell.
PublicVisibleDefines whether the tab is visible.

Methods

PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassBestDimensionsCalculates the best dimensions for the current cell.
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassGetMainCellReturns the main cell, if the current cell is part of the main cell due to cell merging.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassIsSameTextDetermines whether the same cell text is used in the current cell and the specified cell.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicPaintPaints the tab's contents into the given rectangle.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicRemoveRemoves the tab from the control.
PublicScrollIntoViewScrolls the tab into view.
PublicSelectSelects the tab.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.
PublicInherited from Softelvdm.SftTabsNET.Controls.CellBaseClassTurnRadioButtonOffTurns all radiobuttons in this cell off.

Events

PublicPropertyChangedOccurs when a property of a TabClass instance is modified.

Examples

C# View entire sample code

using Softelvdm.SftTabsNET.Controls;

namespace DemoSample {
    public partial class Form1 : Form {

        private bool loading = false;
        private bool minimized = false;
        private int addedTabs = 0;
        private Dictionary<TabClass, Image> tabImages = new Dictionary<TabClass, Image>();

        public Form1() {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e) {
            // the options show the properties as they were defined in the designer

VB.NET View entire sample code

Imports Softelvdm.SftTabsNET
Imports Softelvdm.SftTabsNET.Controls

Public Class Form1

Private loading As Boolean = False
Private minimized As Boolean = False
Private addedTabs As Integer = 0
Private tabImages As New Dictionary(Of TabClass, Image)

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ' the options show the properties as they were defined in the designer
    loading = True
    FillCombo(ComboLook, SftTabs1.Look)
    FillCombo(ComboPosition, SftTabs1.TabPosition)
    FillCombo(ComboOrientation, SftTabs1.TextOrientation)

See Also Classes | SftTabs/NET 3.0