System.Windows.Forms.TableLayoutPanel: Method Members

The methods of System.Windows.Forms.TableLayoutPanel are listed below. For a list of all members, see the TableLayoutPanel Members list.

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

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.