Removes the first occurrence of a specific System.Windows.Forms.ColumnStyle from the System.Windows.Forms.TableLayoutColumnStyleCollection.
- columnStyle
- The System.Windows.Forms.ColumnStyle to remove from the System.Windows.Forms.TableLayoutColumnStyleCollection. The value can be null.
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.