System.Windows.Forms.TableLayoutColumnStyleCollection.Remove Method

Removes the first occurrence of a specific System.Windows.Forms.ColumnStyle from the System.Windows.Forms.TableLayoutColumnStyleCollection.

Syntax

public void Remove (ColumnStyle columnStyle)

Parameters

columnStyle
The System.Windows.Forms.ColumnStyle to remove from the System.Windows.Forms.TableLayoutColumnStyleCollection. The value can be null.

Remarks

The TableLayoutColumnStyleCollection.Remove(ColumnStyle) method reapplies the table layout to all the controls in the current System.Windows.Forms.TableLayoutPanel container.

In collections of contiguous elements, such as the System.Windows.Forms.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.

Requirements

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