Export (0) Print
Expand All

TableLayoutColumnStyleCollection.Remove Method

Removes the first occurrence of a specific ColumnStyle from the TableLayoutColumnStyleCollection.

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

public void Remove(
	ColumnStyle columnStyle
)

Parameters

columnStyle
Type: System.Windows.Forms.ColumnStyle

The ColumnStyle to remove from the TableLayoutColumnStyleCollection. The value can be null.

The Remove method reapplies the table layout to all the controls in the current TableLayoutPanel container.

In collections of contiguous elements, such as the TableLayoutColumnStyleCollection class, the elements that follow the deletion point move up to occupy the vacated spot. The indexes of the elements that are moved are also updated.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft