ListView.CheckedIndices プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ListView.CheckedIndices プロパティの意味・解説 

ListView.CheckedIndices プロパティ

コントロールの現在チェックされている項目のインデックスを取得します。

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

Public ReadOnly Property
 CheckedIndices As CheckedIndexCollection
Dim instance As ListView
Dim value As CheckedIndexCollection

value = instance.CheckedIndices
public CheckedIndexCollection CheckedIndices { get;
 }
public:
property CheckedIndexCollection^ CheckedIndices {
    CheckedIndexCollection^ get ();
}
/** @property */
public CheckedIndexCollection get_CheckedIndices ()
public function get CheckedIndices
 () : CheckedIndexCollection

プロパティ値
現在チェックされている項目のインデックスを含んでいる ListView.CheckedIndexCollection。項目が現在チェックされていない場合は、空の ListView.CheckedIndexCollection が返されます。

解説解説

このプロパティは、ListView コントロールの CheckBoxes プロパティが true に設定されている場合にだけ有効です。CheckedIndices プロパティは、コントロールでチェックされているすべての項目の ListView.ListViewItemCollection のインデックス位置を含むコレクションを返します。コレクション内の項目を操作する方法については、ListView.CheckedIndexCollection のトピックを参照してください。

チェックされている項目のインデックス位置ではなく、ListView コントロールでチェックされている項目のコレクションを取得する場合は、CheckedItems プロパティを使用します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

ListView.CheckedIndices プロパティのお隣キーワード
検索ランキング

   

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



ListView.CheckedIndices プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS