Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataColumnCollection.cs
- XmlTextReaderImpl.cs
- FontUnit.cs
- pingexception.cs
- SystemEvents.cs
- AuthenticationException.cs
- HorizontalAlignConverter.cs
- FatalException.cs
- WebPartMovingEventArgs.cs
- DelayedRegex.cs
- SizeAnimationBase.cs
- PlaceHolder.cs
- InvokeAction.cs
- Crc32.cs
- BitmapEffectOutputConnector.cs
- DESCryptoServiceProvider.cs
- BuildProvider.cs
- Help.cs
- RectKeyFrameCollection.cs
- EventSinkHelperWriter.cs
- ProcessHostConfigUtils.cs
- BindingNavigatorDesigner.cs
- XmlIgnoreAttribute.cs
- WebHttpBindingElement.cs
- SecurityContext.cs
- ChainOfDependencies.cs
- DataTrigger.cs
- FtpWebRequest.cs
- ObjectStateEntry.cs
- TextElementAutomationPeer.cs
- CodeDomSerializationProvider.cs
- TransactionChannelFactory.cs
- SponsorHelper.cs
- QueryResults.cs
- StrokeCollectionDefaultValueFactory.cs
- Mouse.cs
- SamlAuthorityBinding.cs
- RegexWorker.cs
- DispatcherSynchronizationContext.cs
- ConvertBinder.cs
- CacheVirtualItemsEvent.cs
- OleServicesContext.cs
- StandardToolWindows.cs
- ClientTargetCollection.cs
- CollectionDataContract.cs
- SelectionHighlightInfo.cs
- XPathConvert.cs
- ToggleProviderWrapper.cs
- QilDataSource.cs
- TreeNodeMouseHoverEvent.cs
- DbProviderFactoriesConfigurationHandler.cs
- MatrixTransform.cs
- PtsPage.cs
- ControlOperationBehavior.cs
- SettingsPropertyIsReadOnlyException.cs
- PerformanceCounterManager.cs
- ImportCatalogPart.cs
- DataControlFieldCollection.cs
- ScrollContentPresenter.cs
- GeneralTransform3DTo2DTo3D.cs
- CollectionViewGroup.cs
- TableRowGroupCollection.cs
- DataGridColumn.cs
- StreamInfo.cs
- QilUnary.cs
- WebPartManager.cs
- CalendarDataBindingHandler.cs
- RTLAwareMessageBox.cs
- CleanUpVirtualizedItemEventArgs.cs
- ImageFormatConverter.cs
- MethodBuilderInstantiation.cs
- ConnectionsZone.cs
- JournalEntryListConverter.cs
- ListViewInsertedEventArgs.cs
- ConcurrentBag.cs
- unsafenativemethodstextservices.cs
- LoadRetryAsyncResult.cs
- Table.cs
- ObjectStateFormatter.cs
- DbResourceAllocator.cs
- XmlSignatureProperties.cs
- DllNotFoundException.cs
- SimpleBitVector32.cs
- ButtonPopupAdapter.cs
- DataServiceResponse.cs
- WebPartVerbsEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- ScrollItemPatternIdentifiers.cs
- ItemsPresenter.cs
- FormViewUpdatedEventArgs.cs
- QuaternionAnimationBase.cs
- LocalizationComments.cs
- XmlSchemaSimpleTypeList.cs
- Attributes.cs
- EntityDataSourceReferenceGroup.cs
- GridViewCancelEditEventArgs.cs
- SqlDataSourceAdvancedOptionsForm.cs
- PasswordRecovery.cs
- UnsafeNativeMethods.cs
- KeyboardNavigation.cs