Code:
/ FX-1434 / FX-1434 / 1.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
- IUnknownConstantAttribute.cs
- TextComposition.cs
- DbParameterCollectionHelper.cs
- CommandField.cs
- UIElementIsland.cs
- TrackingProfileCache.cs
- TextDpi.cs
- TextSegment.cs
- XmlUtil.cs
- HttpWrapper.cs
- JavaScriptObjectDeserializer.cs
- CapabilitiesSection.cs
- LifetimeMonitor.cs
- FixedSOMTable.cs
- TextCompositionEventArgs.cs
- DbProviderFactory.cs
- HostingPreferredMapPath.cs
- NavigationCommands.cs
- DbTransaction.cs
- TransformedBitmap.cs
- PackageFilter.cs
- PersonalizableAttribute.cs
- Highlights.cs
- TemplateBuilder.cs
- InvalidCommandTreeException.cs
- OleDbWrapper.cs
- WebBrowserNavigatingEventHandler.cs
- AssemblyName.cs
- Configuration.cs
- SystemIPv4InterfaceProperties.cs
- OutputCacheSection.cs
- mediaeventshelper.cs
- GenericEnumConverter.cs
- PropertyDescriptorCollection.cs
- IgnoreSectionHandler.cs
- StateChangeEvent.cs
- FrameworkContentElement.cs
- SqlNamer.cs
- SoapFormatterSinks.cs
- DataFieldCollectionEditor.cs
- FormViewInsertEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- AutoScrollHelper.cs
- EntityCommandExecutionException.cs
- SystemIPInterfaceStatistics.cs
- DataObjectPastingEventArgs.cs
- FormatException.cs
- DocumentSchemaValidator.cs
- RtfToXamlReader.cs
- recordstatefactory.cs
- XmlSchemaInferenceException.cs
- ProfilePropertySettingsCollection.cs
- InputProcessorProfilesLoader.cs
- HierarchicalDataSourceDesigner.cs
- FontResourceCache.cs
- AsymmetricKeyExchangeFormatter.cs
- SchemaNames.cs
- ContextMenuStrip.cs
- EdmItemCollection.cs
- ZeroOpNode.cs
- RegexStringValidator.cs
- EventTrigger.cs
- EventPropertyMap.cs
- FixedLineResult.cs
- _Semaphore.cs
- QilVisitor.cs
- BuilderInfo.cs
- WebPartEditorApplyVerb.cs
- MouseActionValueSerializer.cs
- CorrelationRequestContext.cs
- ContextStack.cs
- HMACSHA512.cs
- PagesChangedEventArgs.cs
- HighlightComponent.cs
- CachedPathData.cs
- EncryptedKey.cs
- ConnectionManagementElementCollection.cs
- StatusBarItem.cs
- GridViewRowPresenterBase.cs
- XmlSchemaInferenceException.cs
- WindowsImpersonationContext.cs
- RawStylusSystemGestureInputReport.cs
- TemplateKey.cs
- ListViewInsertionMark.cs
- TextFormatter.cs
- WebRequestModuleElement.cs
- UnlockCardRequest.cs
- PingReply.cs
- MeasurementDCInfo.cs
- RootBuilder.cs
- QilCloneVisitor.cs
- HttpCacheVaryByContentEncodings.cs
- BufferModesCollection.cs
- WebPartDeleteVerb.cs
- bidPrivateBase.cs
- BitmapEffectDrawingContent.cs
- SingleConverter.cs
- Size3D.cs
- TreeWalkHelper.cs
- RuleConditionDialog.cs