Table of Contents

Class ExTableLayoutPanel

Namespace
ExControls
Assembly
ExControls.dll

Extended TableLayoutPanel control: in the custom style it draws the cell borders with its own color and thickness.

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

Constructors

ExTableLayoutPanel()

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

public ExTableLayoutPanel()

Properties

BorderColor

Color of the TableLayoutPanel's border

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

Property Value

Color

BorderThickness

Thickness of the TableLayoutPanel's border

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Thickness of the TableLayoutPanel'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

Methods

ApplyTheme(ExTheme)

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

public void ApplyTheme(ExTheme theme)

Parameters

theme ExTheme

OnCellPaint(TableLayoutCellPaintEventArgs)

Receives a call when the cell should be refreshed.

protected override void OnCellPaint(TableLayoutCellPaintEventArgs e)

Parameters

e TableLayoutCellPaintEventArgs

A TableLayoutCellPaintEventArgs that provides data for the event.

OnDefaultStyleChanged()

Raises the DefaultStyleChanged event.

protected virtual void OnDefaultStyleChanged()

Events

DefaultStyleChanged

Occurs when the DefaultStyle property changed.

public event EventHandler? DefaultStyleChanged

Event Type

EventHandler