TableLayoutRowStyleCollection.Remove(RowStyle) 方法

定义

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)

参数

rowStyle
RowStyle

RowStyle 从中删除的 TableLayoutRowStyleCollection。 该值可以是 null

注解

该方法 Remove 将表布局重新应用到当前 TableLayoutPanel 容器中的所有控件。

在连续元素(如 TableLayoutRowStyleCollection 类)的集合中,删除点后面的元素向上移动以占据空置的位置。 移动的元素的索引也会更新。

适用于

另请参阅