PowerTools PlusPak for Windows Forms 8.0J
Insert(Int32,String) メソッド

項目を挿入する、0から始まるインデックス位置。
項目に表示するテキスト。
GcCheckedGroupBoxコントロールの項目リストの指定したインデックスに、指定したテキストを含む項目を挿入します。
構文
Public Overloads Sub Insert( _
   ByVal index As Integer, _
   ByVal text As String _
) 
public void Insert( 
   int index,
   string text
)

パラメータ

index
項目を挿入する、0から始まるインデックス位置。
text
項目に表示するテキスト。
例外
例外解説
System.ArgumentOutOfRangeExceptionindexパラメーターが0未満か、CheckBoxItemCollectionクラスのCountプロパティの値を超えています。
解説
このバージョンのInsert(Int32,String)メソッドを使用すると、指定したtextを含む新しい項目を、CheckBoxItemCollection内の特定の位置に挿入できます。コレクション内の特定の位置を指定せずに項目を追加するには、Add(String)メソッドを使用します。項目の配列をコレクションに追加するには、AddRangeメソッドを使用します。
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

CheckBoxItemCollection クラス
CheckBoxItemCollection メンバ
オーバーロード一覧
Add(String) メソッド
AddRange メソッド
Add(String) メソッド
AddRange メソッド

Send Feedback