Show / Hide Table of Contents

Class TabItem

Contains the header and content of a tab for the TabControl.

Inheritance
object
TabItem
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 header value is an empty string.

Properties

AutomaticPadding

Padding to add around the Header text when TabSize is unset (-1).

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

If TabSize is any value other than

-1
, the Header is aligned according to this property.
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

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX