Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItemCollection.cs / 1305376 / RepeaterItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; ////// 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Returns an enumerator of all ///controls within the /// collection. // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; ////// 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- MailDefinition.cs
- TabControlEvent.cs
- ChineseLunisolarCalendar.cs
- EntityTypeBase.cs
- AsymmetricKeyExchangeFormatter.cs
- SafeNativeMethods.cs
- DecoderFallback.cs
- Button.cs
- NativeWindow.cs
- cookieexception.cs
- UmAlQuraCalendar.cs
- HyperLinkStyle.cs
- SpeakInfo.cs
- DockPatternIdentifiers.cs
- StringHelper.cs
- StrokeCollectionConverter.cs
- XamlReader.cs
- ArrayWithOffset.cs
- TransactionalPackage.cs
- ReachDocumentSequenceSerializer.cs
- ipaddressinformationcollection.cs
- XamlStyleSerializer.cs
- ConstrainedGroup.cs
- WmlTextBoxAdapter.cs
- DataBindingList.cs
- OdbcStatementHandle.cs
- BindingMAnagerBase.cs
- MetadataException.cs
- GeneralTransformGroup.cs
- TabControlEvent.cs
- LinkDescriptor.cs
- ControlBuilderAttribute.cs
- QuadraticBezierSegment.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Permission.cs
- Point3DAnimation.cs
- PropertyPathConverter.cs
- ActivityExecutionWorkItem.cs
- TableCellsCollectionEditor.cs
- NamespaceList.cs
- WindowsNonControl.cs
- MarkupProperty.cs
- GlyphRunDrawing.cs
- PassportAuthentication.cs
- OletxTransactionFormatter.cs
- SignatureResourceHelper.cs
- PropertyEmitter.cs
- ExtendedPropertyInfo.cs
- ExpandedWrapper.cs
- FileStream.cs
- ServiceModelConfigurationSection.cs
- ModelUIElement3D.cs
- TextEndOfLine.cs
- OdbcException.cs
- DesignerView.Commands.cs
- PersonalizationDictionary.cs
- CommandBindingCollection.cs
- PreviewPageInfo.cs
- LocationReferenceEnvironment.cs
- TextOutput.cs
- Light.cs
- SqlFormatter.cs
- DoneReceivingAsyncResult.cs
- FileDialog_Vista_Interop.cs
- EdmEntityTypeAttribute.cs
- Style.cs
- Deflater.cs
- WindowsScrollBar.cs
- ComponentEvent.cs
- AccessibleObject.cs
- TabPanel.cs
- DiscreteKeyFrames.cs
- Filter.cs
- RunWorkerCompletedEventArgs.cs
- ClassValidator.cs
- ApplicationDirectory.cs
- WsdlInspector.cs
- HierarchicalDataSourceConverter.cs
- LongValidatorAttribute.cs
- ProxyGenerator.cs
- XmlSchemaGroupRef.cs
- CodeConditionStatement.cs
- ListControl.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ColumnMap.cs
- Grid.cs
- ClientApiGenerator.cs
- LocalizationParserHooks.cs
- XmlDeclaration.cs
- WebOperationContext.cs
- SoapFormatter.cs
- RoutedEventHandlerInfo.cs
- JsonReaderDelegator.cs
- ImageDrawing.cs
- RectangleConverter.cs
- Utils.cs
- SymbolPair.cs
- ExternalException.cs
- __Error.cs
- WebPartEventArgs.cs