System.Windows.Forms.TableLayoutRowStyleCollection.Insert Method

Inserts a System.Windows.Forms.RowStyle into the System.Windows.Forms.TableLayoutRowStyleCollection at the specified position.

Syntax

public void Insert (int index, RowStyle rowStyle)

Parameters

index
The zero-based index at which the System.Windows.Forms.RowStyle should be inserted.
rowStyle
The System.Windows.Forms.RowStyle to insert into the System.Windows.Forms.TableLayoutRowStyleCollection. The value can be null.

Remarks

The TableLayoutRowStyleCollection.Insert(int, RowStyle) method reapplies the table layout to all the controls in the current System.Windows.Forms.TableLayoutPanel container.

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

In collections of contiguous elements, such as the System.Windows.Forms.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.

Requirements

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