Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Design / DocumentCollection.cs / 1 / DocumentCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel.Design { using Microsoft.Win32; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; using System.Security.Permissions; ////// [HostProtection(SharedState = true)] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class DesignerCollection : ICollection { private IList designers; ////// Provides a read-only collection of documents. /// ////// public DesignerCollection(IDesignerHost[] designers) { if (designers != null) { this.designers = new ArrayList(designers); } else { this.designers = new ArrayList(); } } ////// Initializes a new instance of the ///class /// that stores an array with a pointer to each /// for each document in the collection. /// /// public DesignerCollection(IList designers) { this.designers = designers; } ////// Initializes a new instance of the ///class /// that stores an array with a pointer to each /// for each document in the collection. /// /// public int Count { get { return designers.Count; } } ///Gets or /// sets the number /// of documents in the collection. ////// public virtual IDesignerHost this[int index] { get { return (IDesignerHost)designers[index]; } } ///Gets /// or sets the document at the specified index. ////// public IEnumerator GetEnumerator() { return designers.GetEnumerator(); } ///Creates and retrieves a new enumerator for this collection. ///int ICollection.Count { get { return Count; } } /// bool ICollection.IsSynchronized { get { return false; } } /// object ICollection.SyncRoot { get { return null; } } /// void ICollection.CopyTo(Array array, int index) { designers.CopyTo(array, index); } /// IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } }
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DecoderExceptionFallback.cs
- ToolBarPanel.cs
- SID.cs
- PositiveTimeSpanValidatorAttribute.cs
- CorePropertiesFilter.cs
- ReachDocumentReferenceSerializerAsync.cs
- ResourcePermissionBase.cs
- ErrorStyle.cs
- BitmapSource.cs
- TextDecorationLocationValidation.cs
- WorkflowTraceTransfer.cs
- AxisAngleRotation3D.cs
- DBConnection.cs
- UrlMappingCollection.cs
- KeyFrames.cs
- ZoneIdentityPermission.cs
- ParseHttpDate.cs
- FrameworkElementFactoryMarkupObject.cs
- Model3DGroup.cs
- AtomServiceDocumentSerializer.cs
- Package.cs
- DrawListViewSubItemEventArgs.cs
- RestHandlerFactory.cs
- ClaimTypeRequirement.cs
- EditingScopeUndoUnit.cs
- DataRowComparer.cs
- XslAstAnalyzer.cs
- Rfc2898DeriveBytes.cs
- PropertyItem.cs
- ShortcutKeysEditor.cs
- ProfileService.cs
- RegexInterpreter.cs
- XmlDocumentSurrogate.cs
- FontStyleConverter.cs
- CopyCodeAction.cs
- LicenseProviderAttribute.cs
- XmlName.cs
- CheckPair.cs
- PreApplicationStartMethodAttribute.cs
- TemplateInstanceAttribute.cs
- ArrayHelper.cs
- BindingList.cs
- DateTimeFormat.cs
- OleDbTransaction.cs
- DbConnectionPoolGroupProviderInfo.cs
- MachineSettingsSection.cs
- Point3D.cs
- GridViewSortEventArgs.cs
- DataGridViewElement.cs
- RoutedEventConverter.cs
- DockPatternIdentifiers.cs
- EngineSite.cs
- Rfc2898DeriveBytes.cs
- CodeRegionDirective.cs
- SecurityCriticalDataForSet.cs
- ToolStripLocationCancelEventArgs.cs
- DataSourceGroupCollection.cs
- CutCopyPasteHelper.cs
- StsCommunicationException.cs
- ItemCheckedEvent.cs
- TextTabProperties.cs
- SqlCommand.cs
- NavigatorInput.cs
- RuntimeEnvironment.cs
- NavigationHelper.cs
- UnsafePeerToPeerMethods.cs
- BuildResultCache.cs
- DataGridViewRowsAddedEventArgs.cs
- PhysicalOps.cs
- Parallel.cs
- CommandExpr.cs
- XmlName.cs
- UserNameSecurityToken.cs
- ConfigXmlText.cs
- InternalsVisibleToAttribute.cs
- DoubleLinkListEnumerator.cs
- NamespaceListProperty.cs
- Debugger.cs
- CompilerCollection.cs
- XPathAncestorIterator.cs
- RoleManagerModule.cs
- CreatingCookieEventArgs.cs
- PersonalizationDictionary.cs
- ServiceEndpointElement.cs
- BaseCodeDomTreeGenerator.cs
- XPathAxisIterator.cs
- SqlCacheDependencyDatabase.cs
- ChildrenQuery.cs
- SqlUdtInfo.cs
- tooltip.cs
- BounceEase.cs
- StandardTransformFactory.cs
- ThreadAbortException.cs
- PointHitTestParameters.cs
- AutomationPattern.cs
- EventEntry.cs
- SchemaContext.cs
- HttpFileCollection.cs
- ImageIndexEditor.cs
- Hex.cs