TableLayoutColumnStyleCollection.Insert(Int32, ColumnStyle) メソッド

定義

指定した位置にあるColumnStyleTableLayoutColumnStyleCollectionを挿入します。

public:
 void Insert(int index, System::Windows::Forms::ColumnStyle ^ columnStyle);
public void Insert(int index, System.Windows.Forms.ColumnStyle columnStyle);
member this.Insert : int * System.Windows.Forms.ColumnStyle -> unit
Public Sub Insert (index As Integer, columnStyle As ColumnStyle)

パラメーター

index
Int32

ColumnStyleを挿入する位置を示す 0 から始まるインデックス。

注釈

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

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

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

適用対象

こちらもご覧ください