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 插入點後的元素會向下移動以容納插入的元素。 移動元素的索引也會同步更新。