Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListDictionary.cs
- TextBoxAutoCompleteSourceConverter.cs
- WebPartDisplayModeCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- PageContentCollection.cs
- DataServiceRequest.cs
- ZoneButton.cs
- BamlLocalizableResource.cs
- WebPartDisplayModeCollection.cs
- DropDownList.cs
- LicenseProviderAttribute.cs
- StylusPointCollection.cs
- ErrorHandler.cs
- AutoGeneratedFieldProperties.cs
- ButtonStandardAdapter.cs
- RuleSetBrowserDialog.cs
- SimpleTextLine.cs
- ItemCollection.cs
- StorageEntitySetMapping.cs
- HtmlImage.cs
- FormView.cs
- FilterQueryOptionExpression.cs
- BinaryObjectReader.cs
- ShutDownListener.cs
- XmlDataSourceDesigner.cs
- Floater.cs
- SelectionProcessor.cs
- BitVec.cs
- TabletDeviceInfo.cs
- WebException.cs
- SmiConnection.cs
- CodeBlockBuilder.cs
- XmlAttributeOverrides.cs
- MonthChangedEventArgs.cs
- SqlNotificationEventArgs.cs
- ControlDesigner.cs
- SqlConnectionHelper.cs
- ContentPropertyAttribute.cs
- ArgumentValue.cs
- DesignerCapabilities.cs
- ScriptRegistrationManager.cs
- NullableDecimalMinMaxAggregationOperator.cs
- PropertyInformationCollection.cs
- DateTimePicker.cs
- HtmlTableCell.cs
- DataServiceRequest.cs
- SdlChannelSink.cs
- MouseActionValueSerializer.cs
- NativeMethods.cs
- PageMediaSize.cs
- MetadataItemCollectionFactory.cs
- ActivityDesignerAccessibleObject.cs
- WorkflowApplicationEventArgs.cs
- Button.cs
- ObjectViewListener.cs
- NetCodeGroup.cs
- FileUpload.cs
- ParameterReplacerVisitor.cs
- FormatterConverter.cs
- PermissionSet.cs
- LookupBindingPropertiesAttribute.cs
- TextWriterTraceListener.cs
- ControlPaint.cs
- Tool.cs
- SmtpClient.cs
- GridViewSelectEventArgs.cs
- GridViewDeleteEventArgs.cs
- TypeDependencyAttribute.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- DockAndAnchorLayout.cs
- NullableDecimalMinMaxAggregationOperator.cs
- ProgressChangedEventArgs.cs
- PropertyItemInternal.cs
- HandlerMappingMemo.cs
- ObjectComplexPropertyMapping.cs
- LateBoundBitmapDecoder.cs
- ToolStripHighContrastRenderer.cs
- ValueQuery.cs
- RadioButton.cs
- BitmapEffectDrawingContextWalker.cs
- Helper.cs
- ProfileProvider.cs
- AppendHelper.cs
- WebPartCatalogCloseVerb.cs
- ApplicationTrust.cs
- BlurBitmapEffect.cs
- FileIOPermission.cs
- CreateSequence.cs
- UserUseLicenseDictionaryLoader.cs
- KeyConverter.cs
- DocumentViewerAutomationPeer.cs
- StateManagedCollection.cs
- RefreshPropertiesAttribute.cs
- DbTransaction.cs
- TdsParserSessionPool.cs
- MapPathBasedVirtualPathProvider.cs
- OleCmdHelper.cs
- WorkflowServiceHostFactory.cs
- GlyphCache.cs
- TableStyle.cs