PowerTools PlusPak for Windows Forms 8.0J
Contains メソッド (RadioButtonItemCollection)

コレクション内で検索する項目。
指定した項目がコレクション内に存在するかどうかを確認します。
構文
Public Function Contains( _
   ByVal item As RadioButtonItem _
) As Boolean
public bool Contains( 
   RadioButtonItem item
)

パラメータ

item
コレクション内で検索する項目。

戻り値の型

項目がコレクション内に存在する場合はtrue、それ以外の場合はfalse
解説
Containsメソッドを使用すると、特定のRadioButtonItemがコレクションのメンバであるかどうかを確認できます。項目がコレクション内にあることがわかったら、IndexOfメソッドを使用して、その項目のコレクション内での位置を確認できます。
プラットフォーム

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 メンバ
IndexOf メソッド
IndexOf メソッド

Send Feedback