TableLayoutRowStyleCollection.Insert(Int32, RowStyle) 方法

定义

将 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)

参数

index
Int32

从零开始的索引,应在其中插入该 RowStyle 索引。

rowStyle
RowStyle

RowStyle插入到 .TableLayoutRowStyleCollection 该值可以是 null

注解

该方法 Insert 将表布局重新应用到当前 TableLayoutPanel 容器中的所有控件。

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

在连续元素(如 TableLayoutRowStyleCollection 类)的集合中,插入点后面的元素向下移动以适应插入的元素。 移动的元素的索引也会更新。

适用于

另请参阅