Gets the number of items in the collection.
Public ReadOnly Property Count As Integer
Dim instance As ListBox..::.ObjectCollection Dim value As Integer value = instance.Count
public int Count { get; }
public: virtual property int Count { int get () sealed; }
public final function get Count () : int
This property enables you to determine the number of items in the ListBox. You can then use this value when you are looping through the values of the collection and you need to provide a number of iterations to perform the loop.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC