TableLayoutColumnStyleCollection::Insert Method (Int32, ColumnStyle^)
.NET Framework (current version)
Inserts a ColumnStyle into the TableLayoutColumnStyleCollection at the specified position.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index at which ColumnStyle should be inserted.
- columnStyle
-
Type:
System.Windows.Forms::ColumnStyle^
The ColumnStyle to insert into the TableLayoutColumnStyleCollection.
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 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: