Share via


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 ,例如 類別,刪除點後面的元素會向上移動,以佔用空的地點。 移動之專案的索引也會更新。

適用於

另請參閱