TabItem Class
Definition
Section titled “Definition”Contains the header and content of a tab for the TabControl.
public class TabItemInheritance object
Constructors
Section titled “Constructors”TabItem(string, Panel)
Section titled “TabItem(string, Panel)”Creates a new tab item with the specified header as a colored string, and sets the content for the tab.
public TabItem(string header, Panel content)Parameters
Section titled “Parameters”header string
The header to display on this tab item.
content Panel
The panel content to display for this tab.
Exceptions
Section titled “Exceptions”ArgumentException
Thrown when the header value is an empty string.
Properties
Section titled “Properties”Header
Section titled “Header”Display text of the header. Also functions as the access key
public string Header { get; set; }ThemeHeaderStates
Section titled “ThemeHeaderStates”Temporary variable holding the theme state of the tab item header.
public ThemeStates ThemeHeaderStates { get; set; }ThemeHeaderArea
Section titled “ThemeHeaderArea”Temporary variable holding where on the tab control the header is drawn.
public Rectangle ThemeHeaderArea { get; set; }ThemeHeaderMouseArea
Section titled “ThemeHeaderMouseArea”Temporary variable holding where on the tab control the mouse is tracked for this header.
public Rectangle ThemeHeaderMouseArea { get; set; }Content
Section titled “Content”The content of this tab item.
public Panel Content { get; set; }TabSize
Section titled “TabSize”The size in cells to allocate for displaying the header.
-1 indicates that the tab should be automatically sized to fit the size of the Header.
public int TabSize { get; set; }AutomaticPadding
Section titled “AutomaticPadding”Padding to add around the Header text when TabSize is unset (-1).
public int AutomaticPadding { get; set; }TextAlignment
Section titled “TextAlignment”If TabSize is any value other than
-1, the Header is aligned according to this property.
public HorizontalAlignment TextAlignment { get; set; }