Table of Contents

Class TabControlStyle

Namespace
Myra.Graphics2D.UI.Styles
Assembly
Myra.dll

Style class that defines the visual appearance of tab control widgets.

public class TabControlStyle : WidgetStyle
Inheritance
TabControlStyle
Inherited Members

Constructors

TabControlStyle()

Initializes a new instance of the TabControlStyle class.

public TabControlStyle()

TabControlStyle(TabControlStyle)

Initializes a new instance of the TabControlStyle class by copying properties from another style.

public TabControlStyle(TabControlStyle style)

Parameters

style TabControlStyle

The source tab control style to copy from.

Properties

ButtonSpacing

Gets or sets the spacing in pixels between tab buttons in the header.

public int ButtonSpacing { get; set; }

Property Value

int

CloseButtonStyle

Gets or sets the style applied to the close button on tab headers, if present.

[Browsable(false)]
public ImageButtonStyle CloseButtonStyle { get; set; }

Property Value

ImageButtonStyle

ContentStyle

Gets or sets the style applied to the tab content area.

[Browsable(false)]
public WidgetStyle ContentStyle { get; set; }

Property Value

WidgetStyle

HeaderSpacing

Gets or sets the spacing in pixels between the tab header and the content area.

public int HeaderSpacing { get; set; }

Property Value

int

TabItemStyle

Gets or sets the style applied to individual tab header buttons.

[Browsable(false)]
public ImageTextButtonStyle TabItemStyle { get; set; }

Property Value

ImageTextButtonStyle

TabSelectorPosition

Gets or sets the position of the tab selector (header) relative to the content.

public TabSelectorPosition TabSelectorPosition { get; set; }

Property Value

TabSelectorPosition

Methods

Clone()

Creates a deep copy of this tab control style.

public override WidgetStyle Clone()

Returns

WidgetStyle

A new TabControlStyle instance with the same properties.