TableLayoutRowStyleCollection.Insert(Int32, RowStyle) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 a RowStyleTableLayoutRowStyleCollection 插入到指定位置。
public:
void Insert(int index, System::Windows::Forms::RowStyle ^ rowStyle);
public void Insert(int index, System.Windows.Forms.RowStyle rowStyle);
member this.Insert : int * System.Windows.Forms.RowStyle -> unit
Public Sub Insert (index As Integer, rowStyle As RowStyle)
参数
- rowStyle
- RowStyle
要RowStyle插入到 .TableLayoutRowStyleCollection 该值可以是 null。
注解
该方法 Insert 将表布局重新应用到当前 TableLayoutPanel 容器中的所有控件。
集合中存储的样式数仅受可用内存的限制。
在连续元素(如 TableLayoutRowStyleCollection 类)的集合中,插入点后面的元素向下移动以适应插入的元素。 移动的元素的索引也会更新。