Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItemCollection.cs / 1 / RepeaterItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class RepeaterItemCollection : ICollection { private ArrayList items; ///Encapsulates the collection of ///objects within a control. /// Initializes a new instance of /// the public RepeaterItemCollection(ArrayList items) { this.items = items; } ///class with the specified items. /// /// public int Count { get { return items.Count; } } ///Gets the item count of the collection. ////// public bool IsReadOnly { get { return false; } } ///Gets a value indicating whether the collection is read-only. ////// public bool IsSynchronized { get { return false; } } ///Gets a value indicating whether access to the collection is synchronized /// (thread-safe). ////// public object SyncRoot { get { return this; } } ///Gets the object that can be used to synchronize access to the collection. In /// this case, it is the collection itself. ////// public RepeaterItem this[int index] { get { return(RepeaterItem)items[index]; } } ///Gets a ///referenced by the specified ordinal index value in /// the collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies contents from the collection to a specified ///with a /// specified starting index. /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } }Returns an enumerator of all ///controls within the /// collection.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebControlsSection.cs
- TableLayoutStyleCollection.cs
- HtmlInputFile.cs
- DoubleLink.cs
- ContentFilePart.cs
- SafeBitVector32.cs
- ToolboxDataAttribute.cs
- TargetException.cs
- BaseTemplateCodeDomTreeGenerator.cs
- RNGCryptoServiceProvider.cs
- RawStylusActions.cs
- CodeTypeConstructor.cs
- RepeaterItemCollection.cs
- XmlUtf8RawTextWriter.cs
- CultureTable.cs
- Subtree.cs
- GeometryHitTestParameters.cs
- BooleanSwitch.cs
- WebAdminConfigurationHelper.cs
- QueryResults.cs
- PointLightBase.cs
- BitmapCodecInfoInternal.cs
- RequestStatusBarUpdateEventArgs.cs
- XmlLoader.cs
- LinqDataSource.cs
- DataMemberConverter.cs
- TableCellCollection.cs
- NCryptSafeHandles.cs
- BigInt.cs
- Keyboard.cs
- SecurityCriticalDataForSet.cs
- TemplateDefinition.cs
- OleDbEnumerator.cs
- IApplicationTrustManager.cs
- EntitySqlQueryState.cs
- TypeLoadException.cs
- MenuItemStyle.cs
- BinaryParser.cs
- figurelengthconverter.cs
- TextTreeText.cs
- DataGridViewCellStyleConverter.cs
- EmptyStringExpandableObjectConverter.cs
- ImageClickEventArgs.cs
- ImageCodecInfo.cs
- Atom10FormatterFactory.cs
- ImageClickEventArgs.cs
- ConnectionProviderAttribute.cs
- MailAddressCollection.cs
- Listener.cs
- ByteFacetDescriptionElement.cs
- MLangCodePageEncoding.cs
- GridViewDeleteEventArgs.cs
- _FixedSizeReader.cs
- FlatButtonAppearance.cs
- ThicknessAnimationBase.cs
- HScrollBar.cs
- DefaultBinder.cs
- QilValidationVisitor.cs
- DataQuery.cs
- OpacityConverter.cs
- KeyPressEvent.cs
- InplaceBitmapMetadataWriter.cs
- InputLangChangeEvent.cs
- CommandHelpers.cs
- DynamicResourceExtensionConverter.cs
- Boolean.cs
- Context.cs
- Condition.cs
- LookupNode.cs
- DataGridDetailsPresenterAutomationPeer.cs
- Transform.cs
- Restrictions.cs
- ReleaseInstanceMode.cs
- InstanceCollisionException.cs
- PolyLineSegment.cs
- UIElementParaClient.cs
- XPathMessageFilter.cs
- LayoutUtils.cs
- StringValueConverter.cs
- SQLChars.cs
- ServicePointManager.cs
- ListenerSessionConnection.cs
- BaseProcessProtocolHandler.cs
- OAVariantLib.cs
- FilterableAttribute.cs
- EntitySqlQueryCacheKey.cs
- BaseDataBoundControl.cs
- WindowsListViewSubItem.cs
- DiagnosticsConfigurationHandler.cs
- HScrollBar.cs
- SqlProviderServices.cs
- CompilerParameters.cs
- TextBlockAutomationPeer.cs
- TextParentUndoUnit.cs
- DataGridViewCellFormattingEventArgs.cs
- SortFieldComparer.cs
- EndpointDispatcher.cs
- HelpFileFileNameEditor.cs
- ObjectSet.cs
- HtmlUtf8RawTextWriter.cs