TableLayoutRowStyleCollection.Insert(Int32, RowStyle) メソッド

定義

RowStyle 内の指定した位置に TableLayoutRowStyleCollection を挿入します。

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 を挿入する位置の、0 から始まるインデックス番号。

rowStyle
RowStyle

TableLayoutRowStyleCollection に挿入する RowStyle。 値として null を指定できます。

注釈

このメソッドは Insert 、テーブル レイアウトを現在 TableLayoutPanel のコンテナー内のすべてのコントロールに再び適用します。

コレクションに格納されるスタイルの数は、使用可能なメモリによってのみ制限されます。

クラスなどの TableLayoutRowStyleCollection 連続する要素のコレクションでは、挿入された要素に対応するために、挿入ポイントに続く要素が下に移動します。 移動される要素のインデックスも更新されます。

適用対象

こちらもご覧ください