PowerTools InputMan for ASP.NET 8.0J
IndexOf メソッド (MatchedComboItemCollection)

コレクション内で検索する項目 (ComboItemオブジェクト)(GrapeCity.Web.Input.IMCombo.ComboItem 型)
指定した項目のMatchedComboItemCollectionコレクション内の位置(インデックス)を取得します。
構文
Public Function IndexOf( _
   ByVal value As ComboItem _
) As Integer
public int IndexOf( 
   ComboItem value
)

パラメータ

value
コレクション内で検索する項目 (ComboItemオブジェクト)(GrapeCity.Web.Input.IMCombo.ComboItem 型)

戻り値の型

MatchedComboItemCollection内での位置を示す 0 から始まる整数値。
解説
IndexOfメソッドを使用すると、指定した項目のコレクション内の位置を確認できます。指定した項目がコレクション内に存在しないときは、-1 が戻されます。

項目がコレクション内に存在するかどうかは、Containsメソッドでも確認できます。
参照

MatchedComboItemCollection クラス
MatchedComboItemCollection メンバ

 

 


© 2005-2015 GrapeCity inc. All rights reserved.