Table of Contents

Class ExTabControl

Namespace
ExControls
Assembly
ExControls.dll

Extended TabControl control: in the custom style it draws the tab headers and the border with its own colors for the normal, active and highlighted tabs.

[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExTabControl.ico")]
public class ExTabControl : TabControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExControl, IThemeable
Inheritance
ExTabControl
Implements
Inherited Members
Extension Methods

Constructors

ExTabControl()

Initializes a new instance of the ExTabControl class in the default style.

public ExTabControl()

Properties

ActiveHeaderBackColor

Foreground color of the active Tab header.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Background color of the active Tab header.")]
public Color ActiveHeaderBackColor { get; set; }

Property Value

Color

ActiveHeaderForeColor

Foreground color of the active Tab header.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Foreground color of the active Tab header.")]
public Color ActiveHeaderForeColor { get; set; }

Property Value

Color

BackColor

The background color used to display text and graphics in a control.

[Browsable(true)]
[ExDescription("The background color used to display text and graphics in a control.")]
public override Color BackColor { get; set; }

Property Value

Color

BorderColor

Color of the TabControl's border.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the TabControl's border.")]
public Color BorderColor { get; set; }

Property Value

Color

BorderThickness

Width of the TabControl's border.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Width of the TabControl's border.")]
public int BorderThickness { get; set; }

Property Value

int

DefaultStyle

Gets or sets whether the control uses the default Windows style; false = the custom style drawn by the control with its own colors.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Default style of the Control.")]
public bool DefaultStyle { get; set; }

Property Value

bool

HeaderBackColor

Background color of the Tab header.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Background color of the Tab header.")]
public Color HeaderBackColor { get; set; }

Property Value

Color

HeaderForeColor

Foreground color of the Tab header.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Foreground color of the Tab header.")]
public Color HeaderForeColor { get; set; }

Property Value

Color

HighlightBackColor

Background color of the hovered Tab header.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Background color of the hovered Tab header.")]
public Color HighlightBackColor { get; set; }

Property Value

Color

HighlightForeColor

Foreground color of the hovered Tab header.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Foreground color of the hovered Tab header.")]
public Color HighlightForeColor { get; set; }

Property Value

Color

Methods

ApplyTheme(ExTheme)

Sets the colors and appearance of the control by the theme.

public void ApplyTheme(ExTheme theme)

Parameters

theme ExTheme

OnCreateControl()

Raises the CreateControl() method.

protected override void OnCreateControl()

OnDefaultStyleChanged()

Raises the DefaultStyleChanged event.

protected virtual void OnDefaultStyleChanged()

OnMouseLeave(EventArgs)

Raises the MouseLeave event.

protected override void OnMouseLeave(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

protected override void OnMouseMove(MouseEventArgs e)

Parameters

e MouseEventArgs

A MouseEventArgs that contains the event data.

OnPaint(PaintEventArgs)

Raises the Paint event.

protected override void OnPaint(PaintEventArgs e)

Parameters

e PaintEventArgs

A PaintEventArgs that contains the event data.

OnParentBackColorChanged(EventArgs)

Raises the BackColorChanged event when the BackColor property value of the control's container changes.

protected override void OnParentBackColorChanged(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event.

protected override void OnSelectedIndexChanged(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

ResetBackColor()

Resets the BackColor property to its default value.

public override void ResetBackColor()

WndProc(ref Message)

This member overrides WndProc(ref Message).

protected override void WndProc(ref Message m)

Parameters

m Message

A Windows Message Object.

Events

DefaultStyleChanged

Occurs when the DefaultStyle property changes.

[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderColor property changes.")]
public event EventHandler? DefaultStyleChanged

Event Type

EventHandler

SelectedIndexChanging

Occurs as a tab is being changed

[ExDescription("Occurs as a tab is being changed.")]
public event EventHandler<TabPageChangeEventArgs>? SelectedIndexChanging

Event Type

EventHandler<TabPageChangeEventArgs>