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
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Pen.cs
- PartitionerStatic.cs
- HyperLinkStyle.cs
- OverlappedAsyncResult.cs
- PeerCollaborationPermission.cs
- Pool.cs
- ListBindableAttribute.cs
- WrappedIUnknown.cs
- GeneralTransform.cs
- EntityContainerAssociationSetEnd.cs
- TextParagraphCache.cs
- SystemWebCachingSectionGroup.cs
- PropertyCollection.cs
- OdbcError.cs
- DataGridViewRowHeaderCell.cs
- DebugView.cs
- IxmlLineInfo.cs
- DispatcherOperation.cs
- DXD.cs
- DBDataPermissionAttribute.cs
- SafeFileHandle.cs
- RichTextBoxConstants.cs
- _RequestCacheProtocol.cs
- IPAddressCollection.cs
- DriveNotFoundException.cs
- SortAction.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- HttpException.cs
- Select.cs
- PageHandlerFactory.cs
- TdsRecordBufferSetter.cs
- TextPointerBase.cs
- CustomValidator.cs
- LoginCancelEventArgs.cs
- MembershipPasswordException.cs
- ObjectDataSourceFilteringEventArgs.cs
- PageThemeParser.cs
- FormView.cs
- Keywords.cs
- HttpRawResponse.cs
- RelationshipEnd.cs
- ToolStripGripRenderEventArgs.cs
- WebPartConnection.cs
- Variable.cs
- Membership.cs
- SevenBitStream.cs
- OperationBehaviorAttribute.cs
- SerializationIncompleteException.cs
- DataColumnChangeEvent.cs
- HostedBindingBehavior.cs
- ElementMarkupObject.cs
- NamespaceInfo.cs
- PageContentCollection.cs
- WebBrowserHelper.cs
- IdentitySection.cs
- PiiTraceSource.cs
- HtmlElementEventArgs.cs
- StoreItemCollection.Loader.cs
- MarkupProperty.cs
- QilList.cs
- DeferredTextReference.cs
- ByteStack.cs
- ToolStripButton.cs
- WindowHideOrCloseTracker.cs
- PagerStyle.cs
- FormsAuthenticationCredentials.cs
- ChangePassword.cs
- WebProxyScriptElement.cs
- ConfigurationProviderException.cs
- AutomationProperties.cs
- BrowserCapabilitiesCodeGenerator.cs
- VScrollBar.cs
- PresentationAppDomainManager.cs
- ToolboxItemFilterAttribute.cs
- SafeNativeMemoryHandle.cs
- ChtmlImageAdapter.cs
- TreeNodeConverter.cs
- SoapReflector.cs
- ChannelBinding.cs
- TreeView.cs
- SqlCommandSet.cs
- VideoDrawing.cs
- Condition.cs
- TextStore.cs
- ConfigurationStrings.cs
- ListItemConverter.cs
- DynamicDiscoveryDocument.cs
- AsyncCodeActivityContext.cs
- CollectionDataContract.cs
- PeerNameRecord.cs
- UniqueConstraint.cs
- WebPartEditorApplyVerb.cs
- MediaScriptCommandRoutedEventArgs.cs
- OleServicesContext.cs
- SQLInt64Storage.cs
- DataListCommandEventArgs.cs
- TraceContextEventArgs.cs
- ForwardPositionQuery.cs
- ListViewDataItem.cs