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 容器中的所有控件。

集合中存储的样式数仅受可用内存的限制。

适用于