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 已分配给另一个所有者。 必须先将其从当前位置删除或克隆。
注解
该方法 Add 将表布局重新应用到当前 TableLayoutPanel 容器中的所有控件。
集合中存储的样式数仅受可用内存的限制。