語言

TableLayoutRowStyleCollection.Add(RowStyle) 方法

定義

public:
 int Add(System::Windows::Forms::RowStyle ^ rowStyle);
public int Add(System.Windows.Forms.RowStyle rowStyle);
override this.Add : System.Windows.Forms.RowStyle -> int
Public Function Add (rowStyle As RowStyle) As Integer

參數

rowStyle
RowStyle

該 RowStyle 要加到 TableLayoutRowStyleCollection。

傳回

新元件插入的位置。

備註

此 Add 方法會將表格佈局重新套用到目前 TableLayoutPanel 容器中的所有控制項。

集合中儲存的樣式數量僅受限於可用記憶體。

適用於

另請參閱