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
- WindowsNonControl.cs
- NativeStructs.cs
- sqlcontext.cs
- Stopwatch.cs
- BamlTreeMap.cs
- Parsers.cs
- CopyAttributesAction.cs
- ControlOperationBehavior.cs
- KeyGestureValueSerializer.cs
- PropertyValueChangedEvent.cs
- SortFieldComparer.cs
- TraceSection.cs
- Image.cs
- NativeMethods.cs
- oledbmetadatacollectionnames.cs
- GenericAuthenticationEventArgs.cs
- XmlHierarchyData.cs
- SafeNativeMethodsMilCoreApi.cs
- ReflectEventDescriptor.cs
- SettingsSavedEventArgs.cs
- WindowsListBox.cs
- TextEndOfParagraph.cs
- TargetControlTypeCache.cs
- TextTreeUndoUnit.cs
- HtmlImage.cs
- BitmapEffectInput.cs
- DataGridPagerStyle.cs
- OleDbFactory.cs
- EntityContainerEmitter.cs
- COM2EnumConverter.cs
- BinarySecretSecurityToken.cs
- AlternateView.cs
- NetworkInterface.cs
- TextAnchor.cs
- DbException.cs
- StorageScalarPropertyMapping.cs
- SplineQuaternionKeyFrame.cs
- ObjectViewListener.cs
- Authorization.cs
- StandardOleMarshalObject.cs
- TextRunTypographyProperties.cs
- WebCategoryAttribute.cs
- DataSpaceManager.cs
- FontStretchConverter.cs
- SafeCoTaskMem.cs
- DbDataRecord.cs
- OdbcEnvironment.cs
- DataSourceCacheDurationConverter.cs
- BindingExpressionBase.cs
- WebResponse.cs
- RandomNumberGenerator.cs
- PropertyGeneratedEventArgs.cs
- ObjectAnimationUsingKeyFrames.cs
- ResolveCriteria11.cs
- AnonymousIdentificationSection.cs
- ByteStreamGeometryContext.cs
- OdbcException.cs
- ComponentRenameEvent.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TextRangeEditTables.cs
- UInt32Storage.cs
- StateChangeEvent.cs
- SafeEventLogReadHandle.cs
- ByteAnimationUsingKeyFrames.cs
- Encoder.cs
- SoapDocumentMethodAttribute.cs
- _ListenerAsyncResult.cs
- DecimalStorage.cs
- HttpCachePolicyElement.cs
- QueryContext.cs
- ControlBuilder.cs
- URLAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- WebResourceAttribute.cs
- TemplateField.cs
- CacheChildrenQuery.cs
- Attributes.cs
- CanExpandCollapseAllConverter.cs
- InertiaTranslationBehavior.cs
- MetadataItemEmitter.cs
- DBCSCodePageEncoding.cs
- InheritanceContextHelper.cs
- clipboard.cs
- ModelItemCollectionImpl.cs
- InkCanvasInnerCanvas.cs
- ListViewUpdatedEventArgs.cs
- VBCodeProvider.cs
- DocumentApplicationJournalEntryEventArgs.cs
- ExpressionBindingCollection.cs
- RegistryKey.cs
- TextEditorDragDrop.cs
- WebBrowser.cs
- StylusPoint.cs
- DataGridViewHitTestInfo.cs
- DynamicFilterExpression.cs
- CharStorage.cs
- OSFeature.cs
- Html32TextWriter.cs
- arabicshape.cs
- SmiEventSink.cs