This documentation is archived and is not being maintained.

TemplateGroupCollection::Count Property

Gets the number of TemplateGroup objects in the collection.

Namespace:  System.Web.UI.Design
Assembly:  System.Design (in System.Design.dll)

public:
property int Count {
	int get ();
}

Property Value

Type: System::Int32
The number of TemplateGroup objects in the collection.

The Count property generally is used to determine the upper boundary index when iterating through objects in the collection. Because the collection indexes are zero-based, the first element is at index 0 and the last element is at index Count-1.

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

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: