System.Windows.Forms.TableLayoutPanel Members

The members of System.Windows.Forms.TableLayoutPanel are listed below.

See Also: Inherited members from System.Windows.Forms.Panel

Public Constructors

Initializes a new instance of the System.Windows.Forms.TableLayoutPanel class.

Public Properties

BorderStyleBorderStyle.

Gets or sets the border style for the panel.

CellBorderStyleTableLayoutPanelCellBorderStyle.

Gets or sets the style of the cell borders.

ColumnCountint.

Gets or sets the number of columns in the table.

[read-only]
ColumnStylesTableLayoutColumnStyleCollection.

Gets a collection of column styles for the System.Windows.Forms.TableLayoutPanel.

[read-only]
ControlsTableLayoutControlCollection.

Gets the collection of controls contained within the System.Windows.Forms.TableLayoutPanel.

GrowStyleTableLayoutPanelGrowStyle.

Gets or sets a value indicating whether the System.Windows.Forms.TableLayoutPanel control should expand to accommodate new cells when all existing cells are occupied.

[read-only]
override
LayoutEngineSystem.Windows.Forms.Layout.LayoutEngine.

Gets a cached instance of the panel's layout engine.

LayoutSettingsTableLayoutSettings.

Gets or sets a value representing the table layout settings.

RowCountint.

Gets or sets the number of rows in the table.

[read-only]
RowStylesTableLayoutRowStyleCollection.

Gets a collection of row styles for the System.Windows.Forms.TableLayoutPanel.

Public Methods

GetCellPosition(Control) : TableLayoutPanelCellPosition

Gets the System.Windows.Forms.TableLayoutPanelCellPosition that represents the row and the column of the cell.

GetColumn(Control) : int

Returns the column position of the specified child control.

GetColumnSpan(Control) : int

Returns the number of columns spanned by the specified child control.

GetColumnWidths() : int[]

Returns an array representing the widths, in pixels, of the columns in the System.Windows.Forms.TableLayoutPanel.

GetControlFromPosition(int, int) : Control

Returns the child control occupying the specified position.

GetPositionFromControl(Control) : TableLayoutPanelCellPosition

Gets the System.Windows.Forms.TableLayoutPanelCellPosition that represents the row and the column of the cell that contains the control.

GetRow(Control) : int

Returns the row position of the specified child control.

GetRowHeights() : int[]

Returns an array representing the heights, in pixels, of the rows in the System.Windows.Forms.TableLayoutPanel.

GetRowSpan(Control) : int

Returns the number of rows spanned by the specified child control.

SetCellPosition(Control, TableLayoutPanelCellPosition)

Sets the System.Windows.Forms.TableLayoutPanelCellPosition that represents the row and the column of the cell.

SetColumn(Control, int)

Sets the column position of the specified child control.

SetColumnSpan(Control, int)

Sets the number of columns spanned by the child control.

SetRow(Control, int)

Sets the row position of the specified child control.

SetRowSpan(Control, int)

Sets the number of rows spanned by the child control.

Protected Methods

override
CreateControlsInstance() : Control.ControlCollection

Creates a new instance of the control collection for the control.

OnCellPaint(TableLayoutCellPaintEventArgs)

Receives a call when the cell should be refreshed.

override
OnLayout(LayoutEventArgs)

Raises the Control.Layout event.

override
OnPaintBackground(PaintEventArgs)

Paints the background of the panel.

override
ScaleControl(System.Drawing.SizeF, BoundsSpecified)

Scales a control's location, size, padding and margin.

override
ScaleCore(float, float)

Performs the work of scaling the entire panel and any child controls.

Public Events

CellPaint

Occurs when the cell is redrawn.

Explicitly Implemented Interface Members