Export (0) Print
Expand All

TableLayoutRowStyleCollection.Insert Method

Inserts a RowStyle into the TableLayoutRowStyleCollection at the specified position.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public void Insert(
	int index,
	RowStyle rowStyle


Type: System.Int32

The zero-based index at which the RowStyle should be inserted.

Type: System.Windows.Forms.RowStyle

The RowStyle to insert into the TableLayoutRowStyleCollection. The value can be null.

The Insert method reapplies the table layout to all the controls in the current TableLayoutPanel container.

The number of styles stored in a collection is limited only by available memory.

In collections of contiguous elements, such as the TableLayoutRowStyleCollection class, the elements that follow the insertion point move down to accommodate the inserted element. The indexes of the elements that are moved are also updated.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft