TableLayoutRowStyleCollection.Remove(RowStyle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the first occurrence of a specific object from the TableLayoutRowStyleCollection.
public:
void Remove(System::Windows::Forms::RowStyle ^ rowStyle);
public void Remove (System.Windows.Forms.RowStyle rowStyle);
member this.Remove : System.Windows.Forms.RowStyle -> unit
Public Sub Remove (rowStyle As RowStyle)
Parameters
- rowStyle
- RowStyle
The RowStyle to remove from the TableLayoutRowStyleCollection. The value can be null
.
Remarks
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.