Inserts a System.Windows.Forms.RowStyle into the System.Windows.Forms.TableLayoutRowStyleCollection at the specified position.
- 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.
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.