asp.net.ph

RepeaterItemCollection Class

System.Web.UI.WebControls Namespace


Represents the collection of Items in a Repeater control.

RepeaterItemCollection Class Members

Collapse   Constructors

Visibility Constructor Parameters
public RepeaterItemCollection ( ArrayList items )

Collapse   Properties

Visibility Name Value Type Accessibility
public Count Int32 [ Get ]
public IsReadOnly Boolean [ Get ]
public IsSynchronized Boolean [ Get ]
public Item ( Int32 index ) RepeaterItem [ Get ]
public SyncRoot Object [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public CopyTo ( Array array , Int32 index ) Void
public GetEnumerator ( ) IEnumerator

The RepeaterItemCollection class represents a collection of RepeaterItem objects, that in turn represent the data items displayed in a Repeater control. To programmatically retrieve RepeaterItem objects from a Repeater control, use one of following methods:

  • Use the indexer to get a single RepeaterItem from the collection, using array notation.
  • Use the CopyTo method to copy the contents of the collection to a System.Array object, which can then be used to get items from the collection.
  • Use the GetEnumerator method to create a System.Collections.IEnumerator implemented object, which can then be used to get items from the collection.

The Count property specifies the total number of items in the collection, and is commonly used to determine the upper bound of the collection.

NOTE: The RepeaterItemCollection is read-only; as such, it does not provide any methods to add or remove items in the collection.

See Also

Repeater   Repeater.Items   RepeaterItem Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph