Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContractMethodInfo.cs
- EndpointBehaviorElement.cs
- TextEvent.cs
- Pen.cs
- XmlFormatReaderGenerator.cs
- EntityProxyTypeInfo.cs
- DataTableMappingCollection.cs
- HashSetDebugView.cs
- Metadata.cs
- CapabilitiesState.cs
- InfoCardUIAgent.cs
- ArrangedElementCollection.cs
- FrameworkRichTextComposition.cs
- IndexExpression.cs
- XmlQualifiedName.cs
- NegotiateStream.cs
- ProtocolViolationException.cs
- ToolstripProfessionalRenderer.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- DataSourceCacheDurationConverter.cs
- XPathSelectionIterator.cs
- Trigger.cs
- CaseExpr.cs
- Serialization.cs
- BitmapMetadataEnumerator.cs
- XmlArrayItemAttributes.cs
- VScrollProperties.cs
- ResourceReferenceExpression.cs
- CharacterBuffer.cs
- TabletDevice.cs
- HyperLink.cs
- ComponentResourceKeyConverter.cs
- CancelEventArgs.cs
- FixedFindEngine.cs
- HttpRequestTraceRecord.cs
- CorePropertiesFilter.cs
- XPathBinder.cs
- Button.cs
- FolderBrowserDialog.cs
- WindowsRichEdit.cs
- FunctionNode.cs
- ActivitySurrogate.cs
- UseManagedPresentationElement.cs
- OdbcParameterCollection.cs
- DbConnectionPool.cs
- EmptyControlCollection.cs
- Point3DAnimationBase.cs
- PlainXmlWriter.cs
- FormViewRow.cs
- RootBrowserWindow.cs
- BinaryFormatter.cs
- ArcSegment.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- XmlDataImplementation.cs
- _SSPIWrapper.cs
- Helper.cs
- GridView.cs
- LicenseProviderAttribute.cs
- DropSource.cs
- TreeWalker.cs
- FastEncoder.cs
- DesignerEventService.cs
- DataRecordInternal.cs
- ProcessThreadCollection.cs
- InstanceDataCollectionCollection.cs
- DataRowComparer.cs
- HwndKeyboardInputProvider.cs
- BitmapInitialize.cs
- IFormattable.cs
- CodeTypeDelegate.cs
- _DigestClient.cs
- JobStaple.cs
- DBSqlParser.cs
- RemotingConfiguration.cs
- DependencyPropertyConverter.cs
- SafeNativeMethodsCLR.cs
- HitTestDrawingContextWalker.cs
- SecurityKeyUsage.cs
- WebPartUserCapability.cs
- SvcMapFileLoader.cs
- HiddenField.cs
- ReservationNotFoundException.cs
- GridItem.cs
- ComPlusServiceLoader.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- _SSPISessionCache.cs
- TransformerInfo.cs
- DoubleCollectionConverter.cs
- FontFamily.cs
- AdPostCacheSubstitution.cs
- PageParserFilter.cs
- ExtendedProtectionPolicy.cs
- HeaderedContentControl.cs
- EffectiveValueEntry.cs
- UriScheme.cs
- EngineSite.cs
- InputScopeNameConverter.cs
- SettingsPropertyValueCollection.cs
- BindableTemplateBuilder.cs
- ResolveNameEventArgs.cs