PowerTools PlusPak for Windows Forms 8.0J
Add(RadioButtonItem) メソッド

コレクションに追加する項目。
GcRadioGroupBoxコントロールの項目リストに項目を追加します。
構文
Public Overloads Sub Add( _
   ByVal item As RadioButtonItem _
) 
public void Add( 
   RadioButtonItem item
)

パラメータ

item
コレクションに追加する項目。
例外
例外解説
System.ArgumentNullException追加するitemがnullです。
System.InvalidOperationException追加するitemが別のGcRadioGroupBoxコントロールに属しています。
解説
このバージョンのAdd(RadioButtonItem)メソッドを使用すると、既存のRadioButtonItemをコレクションに追加できます。コレクション内の特定の位置に項目を挿入するには、Insert(Int32,RadioButtonItem)メソッドを使用します。項目のセットを1回の操作でコレクションに追加するには、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 メンバ
オーバーロード一覧
Insert(Int32,RadioButtonItem) メソッド
AddRange メソッド
Insert(Int32,RadioButtonItem) メソッド
AddRange メソッド

Send Feedback