Class TabItem
Contains the header and content of a tab for the TabControl.
Inherited Members
Namespace: SadConsole.UI.Controls
Assembly: SadConsole.dll
Syntax
public class TabItem
Constructors
TabItem(string, Panel)
Creates a new tab item with the specified header as a colored string, and sets the content for the tab.
Declaration
public TabItem(string header, Panel content)
Parameters
| Type | Name | Description |
|---|---|---|
| string | header | The header to display on this tab item. |
| Panel | content | The panel content to display for this tab. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Thrown when the |
Properties
AutomaticPadding
Declaration
public int AutomaticPadding { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Content
The content of this tab item.
Declaration
public Panel Content { get; set; }
Property Value
| Type | Description |
|---|---|
| Panel |
Header
Display text of the header. Also functions as the access key
Declaration
public string Header { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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.
Declaration
public int TabSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
TextAlignment
Declaration
public HorizontalAlignment TextAlignment { get; set; }
Property Value
| Type | Description |
|---|---|
| HorizontalAlignment |
ThemeHeaderArea
Temporary variable holding where on the tab control the header is drawn.
Declaration
public Rectangle ThemeHeaderArea { get; set; }
Property Value
| Type | Description |
|---|---|
| Rectangle |
ThemeHeaderMouseArea
Temporary variable holding where on the tab control the mouse is tracked for this header.
Declaration
public Rectangle ThemeHeaderMouseArea { get; set; }
Property Value
| Type | Description |
|---|---|
| Rectangle |
ThemeHeaderStates
Temporary variable holding the theme state of the tab item header.
Declaration
public ThemeStates ThemeHeaderStates { get; set; }
Property Value
| Type | Description |
|---|---|
| ThemeStates |