System.Windows.Forms.TableLayoutRowStyleCollection.Remove Method

Removes the first occurrence of a specific object from the System.Windows.Forms.TableLayoutRowStyleCollection.

Syntax

public void Remove (RowStyle rowStyle)

Parameters

rowStyle
The System.Windows.Forms.RowStyle to remove from the System.Windows.Forms.TableLayoutRowStyleCollection. The value can be null.

Remarks

The TableLayoutRowStyleCollection.Remove(RowStyle) 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.TableLayoutRowStyleCollection 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