Inserts a System.Windows.Forms.ColumnStyle into the System.Windows.Forms.TableLayoutColumnStyleCollection at the specified position.
- index
- The zero-based index at which System.Windows.Forms.ColumnStyle should be inserted.
- columnStyle
- The System.Windows.Forms.ColumnStyle to insert into the System.Windows.Forms.TableLayoutColumnStyleCollection.
The TableLayoutColumnStyleCollection.Insert(int, ColumnStyle) 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.TableLayoutColumnStyleCollection 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.