ListItemCollection.Count プロパティ
アセンブリ: System.Web (system.web.dll 内)


Count プロパティを使用して、ListItemCollection の ListItem オブジェクトの数を確認します。通常、Count プロパティは、コレクションを反復処理してコレクションの上限を確認する場合に使用されます。

次のコードの完全な動作例を参照するには、ListItemCollection クラスのトピックを参照してください。
' Set the number of rows displayed in the ListBox to be ' the number of items in the ListBoxCollection. ListBox1.Rows = ListBox1.Items.Count
// Set the number of rows displayed in the ListBox to be // the number of items in the ListBoxCollection. ListBox1.Rows = ListBox1.Items.Count;

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からListItemCollection.Count プロパティを検索する場合は、下記のリンクをクリックしてください。

- ListItemCollection.Count プロパティのページへのリンク