System.Windows.Forms.TableLayoutColumnStyleCollection.Insert Method

Inserts a System.Windows.Forms.ColumnStyle into the System.Windows.Forms.TableLayoutColumnStyleCollection at the specified position.

Syntax

public void Insert (int index, ColumnStyle columnStyle)

Parameters

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.

Remarks

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.

Requirements

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