TableLayoutRowStyleCollection.Remove Method (RowStyle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the first occurrence of a specific object from the TableLayoutRowStyleCollection.

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

public void Remove(
	RowStyle rowStyle
)

Parameters

rowStyle
Type: System.Windows.Forms.RowStyle

The RowStyle to remove from the TableLayoutRowStyleCollection. 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 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.

.NET Framework
Available since 2.0
Return to top
Show: