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
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
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
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
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
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
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
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
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
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
Methods
ApplyTheme(ExTheme)
Sets the colors and appearance of the control by the theme.
public void ApplyTheme(ExTheme theme)
Parameters
themeExTheme
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
OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
protected override void OnMouseMove(MouseEventArgs e)
Parameters
eMouseEventArgsA MouseEventArgs that contains the event data.
OnPaint(PaintEventArgs)
Raises the Paint event.
protected override void OnPaint(PaintEventArgs e)
Parameters
ePaintEventArgsA 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
OnSelectedIndexChanged(EventArgs)
Raises the SelectedIndexChanged event.
protected override void OnSelectedIndexChanged(EventArgs e)
Parameters
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
mMessageA 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
SelectedIndexChanging
Occurs as a tab is being changed
[ExDescription("Occurs as a tab is being changed.")]
public event EventHandler<TabPageChangeEventArgs>? SelectedIndexChanging