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

參數

傳回

Int32

插入新項目的位置。

例外狀況

style 已指派給另一位擁有人。 必須先將其從目前位置移除或複製。

備註

方法 Add 會將資料表配置重新套用至目前 TableLayoutPanel 容器中的所有控制項。

儲存在集合中的樣式數目只受限於可用的記憶體。

適用於