This documentation is archived and is not being maintained.

ListViewItem.ListViewSubItemCollection.Count Property

Gets the number of subitems in the collection.

[Visual Basic]
Public Overridable ReadOnly Property Count As Integer  Implements _
   ICollection.Count
[C#]
public virtual int Count {get;}
[C++]
public: __property virtual int get_Count();
[JScript]
public function get Count() : int;

Property Value

The number of subitems in the collection.

Implements

ICollection.Count

Remarks

This property enables you to determine the number of subitems that are defined for a ListViewItem. 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ListViewItem.ListViewSubItemCollection Class | ListViewItem.ListViewSubItemCollection Members | System.Windows.Forms Namespace

Show: