TableLayoutStyleCollection.Add(TableLayoutStyle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為現有收藏的末尾新增 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
- TableLayoutStyle
傳回
新元件插入的位置。
例外狀況
style 已被分配給另一位所有者。 你必須先把它從目前的位置移除或複製它。
備註
此 Add 方法會將表格佈局重新套用到目前 TableLayoutPanel 容器中的所有控制項。
集合中儲存的樣式數量僅受限於可用記憶體。