System.Windows.Forms.TableLayoutPanel.SetRow Method

Sets the row position of the specified child control.

Syntax

public void SetRow (Control control, int row)

Parameters

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

Remarks

The TableLayoutPanel.SetRow(Control, int) method moves the control to another row in the System.Windows.Forms.TableLayoutPanel control. The columns and rows have zero-based indexes. Setting the row 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 Row 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