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

項目を挿入する、0から始まるインデックス位置。
挿入する項目。
GcRadioGroupBoxコントロールの項目リストの指定したインデックスに項目を挿入します。
構文
Public Overloads Sub Insert( _
   ByVal index As Integer, _
   ByVal item As RadioButtonItem _
) 
public void Insert( 
   int index,
   RadioButtonItem item
)

パラメータ

index
項目を挿入する、0から始まるインデックス位置。
item
挿入する項目。
例外
例外解説
System.ArgumentOutOfRangeExceptionindexパラメーターが0未満か、RadioButtonItemCollectionクラスのCountプロパティの値を超えています。
System.ArgumentNullException挿入するitemがnullです。
System.InvalidOperationException挿入するitemが別のGcRadioGroupBoxコントロールに属しています。
解説

このメソッドを使用すると、GcRadioGroupBox内の特定の位置に項目を挿入できます。コレクション内の特定の位置を指定せずに項目を追加するには、Add(RadioButtonItem)メソッドを使用します。項目の配列をコレクションに追加するには、AddRangeメソッドを使用します。

このメソッドを使用して項目をコレクションに挿入するときに、itemがすでに別のGcRadioGroupBoxに属している場合、またはitemがこのコレクションにすでに存在している場合には、System.InvalidOperationExceptionがスローされます。

プラットフォーム

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

参照

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

Send Feedback