Represents a collection of System.Web.UI.WebControls.RepeaterItem objects in the System.Web.UI.WebControls.Repeater control. This class cannot be inherited.
See Also: RepeaterItemCollection Members
The System.Web.UI.WebControls.RepeaterItemCollection class represents a collection of System.Web.UI.WebControls.RepeaterItem objects, which in turn represent the data items in a System.Web.UI.WebControls.Repeater control. To programmatically retrieve System.Web.UI.WebControls.RepeaterItem objects from a System.Web.UI.WebControls.Repeater control, use one of the following methods:
Use the indexer to get a single System.Web.UI.WebControls.RepeaterItem object from the collection using array notation.
Use the RepeaterItemCollection.CopyTo(Array, int) method to copy the contents of the collection to a Array object, which can then be used to get items from the collection.
Use the RepeaterItemCollection.GetEnumerator method to create an IEnumerator interface, which can then be used to get items from the collection.
Use foreach (C#) or For Each (Visual Basic) to iterate through the collection.
The RepeaterItemCollection.Count property specifies the total number of items in the collection and is commonly used to determine the upper bound of the collection.