System.Windows.Forms.TableLayoutPanel.SetColumn Method

Sets the column position of the specified child control.

Syntax

public void SetColumn (Control control, int column)

Parameters

control
The control to move to another column.
column
The column to which control will be moved.

Remarks

The TableLayoutPanel.SetColumn(Control, int) method moves the control to another column in the System.Windows.Forms.TableLayoutPanel. The columns and rows have zero-based indexes. Setting the column position to -1 specifies that the control will flow to the first empty cell.

This method reapplies the table layout to all controls in the System.Windows.Forms.TableLayoutPanel.

This method is called by the Column property, which the panel adds to its child controls at design time.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0