ListView.SelectedListViewItemCollection.IndexOf メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ListView.SelectedListViewItemCollection.IndexOf メソッドの意味・解説 

ListView.SelectedListViewItemCollection.IndexOf メソッド

指定した項目のコレクション内のインデックス返します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Function IndexOf ( _
    item As ListViewItem _
) As Integer
Dim instance As SelectedListViewItemCollection
Dim item As ListViewItem
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf (
    ListViewItem item
)
public:
int IndexOf (
    ListViewItem^ item
)
public int IndexOf (
    ListViewItem item
)
public function IndexOf (
    item : ListViewItem
) : int

パラメータ

item

コレクションで検索する項目を表す ListViewItem。

戻り値
コレクション内の項目の 0 から始まるインデックス番号。項目がコレクション内で検出されなかった場合戻り値は -1 です。

解説解説

(Contains メソッド使用して) 選択された項目のコレクション内に項目があることがわかっている場合は、IndexOf メソッド使用して、ListView.SelectedListViewItemCollection 内の項目の位置確認できます

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ListView.SelectedListViewItemCollection クラス
ListView.SelectedListViewItemCollection メンバ
System.Windows.Forms 名前空間
Contains



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ListView.SelectedListViewItemCollection.IndexOf メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ListView.SelectedListViewItemCollection.IndexOf メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS