バージョン

Insert(Int32,String) メソッド

指定されたインデックスにあり、指定されたキーを持つ GalleryToolItemGroupCollectionGalleryToolItemGroup オブジェクトを挿入します。
シンタックス
'宣言
 
Public Overloads Function Insert( _
   ByVal index As Integer, _
   ByVal key As String _
) As GalleryToolItemGroup
public GalleryToolItemGroup Insert( 
   int index,
   string key
)

パラメータ

index
GalleryToolItemGroup を挿入するインデックス。
key
挿入されている GalleryToolItemGroup に割り当てる一意のキー。

戻り値の型

コレクションに追加された特定のキーを持つ新たに作成された GalleryToolItemGroup インスタンス。
例外
例外解説
System.ArgumentExceptionkey は null または空です。
System.ArgumentExceptionkey のキーを持つ項目はコレクションにすでに存在しています。
System.ArgumentOutOfRangeExceptionindex はゼロ未満か Count よりも大きいです。
参照