TableLayoutStyleCollection.Add(TableLayoutStyle) 方法

定義

為現有收藏的末尾新增 TableLayoutStyle 一個新東西。

public:
 int Add(System::Windows::Forms::TableLayoutStyle ^ style);
public int Add(System.Windows.Forms.TableLayoutStyle style);
member this.Add : System.Windows.Forms.TableLayoutStyle -> int
Public Function Add (style As TableLayoutStyle) As Integer

參數

傳回

新元件插入的位置。

例外狀況

style 已被分配給另一位所有者。 你必須先把它從目前的位置移除或複製它。

備註

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

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

適用於