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
- HttpCacheVaryByContentEncodings.cs
- RuleInfoComparer.cs
- OleStrCAMarshaler.cs
- CodeDelegateInvokeExpression.cs
- NumberFunctions.cs
- AssemblyResourceLoader.cs
- EncryptedXml.cs
- Rectangle.cs
- MD5Cng.cs
- GridViewCommandEventArgs.cs
- PersonalizationAdministration.cs
- PermissionSet.cs
- Stylesheet.cs
- KeyValuePair.cs
- SqlRemoveConstantOrderBy.cs
- Pkcs9Attribute.cs
- Debug.cs
- LocatorGroup.cs
- RoleManagerSection.cs
- LocalizabilityAttribute.cs
- LoginName.cs
- NetworkStream.cs
- WorkflowInstanceContextProvider.cs
- SelectionUIHandler.cs
- ServerType.cs
- AttachInfo.cs
- PropertyTabAttribute.cs
- EntityDataSourceReferenceGroup.cs
- BooleanStorage.cs
- DateTimeOffset.cs
- PrinterSettings.cs
- Int64Converter.cs
- HostVisual.cs
- CharKeyFrameCollection.cs
- Base64Encoder.cs
- StringPropertyBuilder.cs
- TextServicesCompartmentEventSink.cs
- EncryptedPackage.cs
- SynchronizedPool.cs
- CommentEmitter.cs
- PathData.cs
- LinkUtilities.cs
- ListenerElementsCollection.cs
- SuppressIldasmAttribute.cs
- CounterSet.cs
- WS2007FederationHttpBindingElement.cs
- ExtendedPropertyDescriptor.cs
- UriExt.cs
- NameHandler.cs
- CannotUnloadAppDomainException.cs
- SqlUserDefinedAggregateAttribute.cs
- ConnectionManagementSection.cs
- DataGridComboBoxColumn.cs
- FrameworkContentElementAutomationPeer.cs
- DataMisalignedException.cs
- GroupBox.cs
- CrossContextChannel.cs
- DeflateInput.cs
- CodeConstructor.cs
- InputBinder.cs
- ToolStripMenuItemDesigner.cs
- DiagnosticsConfigurationHandler.cs
- CustomAttributeFormatException.cs
- StreamInfo.cs
- SortedList.cs
- HashAlgorithm.cs
- EntityDataSourceWrapper.cs
- ValueOfAction.cs
- SqlUDTStorage.cs
- SqlRemoveConstantOrderBy.cs
- DataSourceViewSchemaConverter.cs
- AsyncDataRequest.cs
- UIHelper.cs
- Base64Decoder.cs
- Container.cs
- XmlEncodedRawTextWriter.cs
- XmlCharCheckingWriter.cs
- SocketInformation.cs
- ZoneButton.cs
- JoinSymbol.cs
- EUCJPEncoding.cs
- SqlParameterCollection.cs
- XsltSettings.cs
- ApplicationSettingsBase.cs
- XmlWellformedWriter.cs
- VectorAnimationUsingKeyFrames.cs
- JapaneseLunisolarCalendar.cs
- CatalogZone.cs
- RepeaterDesigner.cs
- PenContexts.cs
- RunInstallerAttribute.cs
- Literal.cs
- dsa.cs
- NotCondition.cs
- MetadataArtifactLoaderCompositeResource.cs
- HtmlHistory.cs
- SchemaConstraints.cs
- PlanCompilerUtil.cs
- ThreadStartException.cs
- PointUtil.cs