Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / GridItemCollection.cs / 1 / GridItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.IO; using System.Collections; using System.Globalization; using System.Windows.Forms; using System.Drawing; using System.Drawing.Design; using System.Windows.Forms.Design; using System.Windows.Forms.ComponentModel.Com2Interop; using System.ComponentModel; using System.ComponentModel.Design; using System.Windows.Forms.PropertyGridInternal; using System.Reflection; using System.Runtime.InteropServices; using Microsoft.Win32; ////// /// A read-only collection of GridItem objects /// public class GridItemCollection : ICollection { ////// /// public static GridItemCollection Empty = new GridItemCollection(new GridItem[0]); internal GridItem[] entries; internal GridItemCollection(GridItem[] entries) { if (entries == null) { this.entries = new GridItem[0]; } else { this.entries = entries; } } ///[To be supplied.] ////// /// Retrieves the number of member attributes. /// public int Count { get { return entries.Length; } } ////// object ICollection.SyncRoot { get { return this; } } /// /// bool ICollection.IsSynchronized { get { return false; } } /// /// /// Retrieves the member attribute with the specified index. /// public GridItem this[int index] { get { return entries[index]; } } ////// /// public GridItem this[string label]{ get { foreach(GridItem g in entries) { if (g.Label == label) { return g; } } return null; } } ///[To be supplied.] ////// void ICollection.CopyTo(Array dest, int index) { if (entries.Length > 0) { System.Array.Copy(entries, 0, dest, index, entries.Length); } } /// /// /// Creates and retrieves a new enumerator for this collection. /// public IEnumerator GetEnumerator() { return entries.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.IO; using System.Collections; using System.Globalization; using System.Windows.Forms; using System.Drawing; using System.Drawing.Design; using System.Windows.Forms.Design; using System.Windows.Forms.ComponentModel.Com2Interop; using System.ComponentModel; using System.ComponentModel.Design; using System.Windows.Forms.PropertyGridInternal; using System.Reflection; using System.Runtime.InteropServices; using Microsoft.Win32; ////// /// A read-only collection of GridItem objects /// public class GridItemCollection : ICollection { ////// /// public static GridItemCollection Empty = new GridItemCollection(new GridItem[0]); internal GridItem[] entries; internal GridItemCollection(GridItem[] entries) { if (entries == null) { this.entries = new GridItem[0]; } else { this.entries = entries; } } ///[To be supplied.] ////// /// Retrieves the number of member attributes. /// public int Count { get { return entries.Length; } } ////// object ICollection.SyncRoot { get { return this; } } /// /// bool ICollection.IsSynchronized { get { return false; } } /// /// /// Retrieves the member attribute with the specified index. /// public GridItem this[int index] { get { return entries[index]; } } ////// /// public GridItem this[string label]{ get { foreach(GridItem g in entries) { if (g.Label == label) { return g; } } return null; } } ///[To be supplied.] ////// void ICollection.CopyTo(Array dest, int index) { if (entries.Length > 0) { System.Array.Copy(entries, 0, dest, index, entries.Length); } } /// /// /// Creates and retrieves a new enumerator for this collection. /// public IEnumerator GetEnumerator() { return entries.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
- RootBuilder.cs
- ControlPaint.cs
- MemberDescriptor.cs
- ObjectFullSpanRewriter.cs
- SqlSupersetValidator.cs
- ProfilePropertySettingsCollection.cs
- SafeRightsManagementQueryHandle.cs
- DirectionalLight.cs
- ClientSettingsProvider.cs
- ListenerElementsCollection.cs
- StringCollection.cs
- EventArgs.cs
- PEFileEvidenceFactory.cs
- JsonDataContract.cs
- ServiceElement.cs
- ServiceRoute.cs
- CharacterBufferReference.cs
- Vector3DValueSerializer.cs
- IResourceProvider.cs
- ResourceIDHelper.cs
- Vector3DValueSerializer.cs
- Tokenizer.cs
- HtmlInputButton.cs
- Rect3D.cs
- RoleManagerEventArgs.cs
- SoapFault.cs
- HtmlEncodedRawTextWriter.cs
- CollectionChangedEventManager.cs
- ScriptMethodAttribute.cs
- SHA384CryptoServiceProvider.cs
- WebServiceData.cs
- TextRangeEdit.cs
- CopyOfAction.cs
- Win32Exception.cs
- Point3DCollectionValueSerializer.cs
- XmlDomTextWriter.cs
- CodeAttributeArgumentCollection.cs
- CompositionTarget.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- MarkupCompilePass2.cs
- CookieHandler.cs
- OdbcConnectionStringbuilder.cs
- ClientBuildManager.cs
- ClientSection.cs
- ProviderConnectionPointCollection.cs
- SqlClientFactory.cs
- ImplicitInputBrush.cs
- UIAgentAsyncBeginRequest.cs
- TreeView.cs
- OleDbException.cs
- RequestCache.cs
- MaterialGroup.cs
- ProtocolsConfiguration.cs
- XmlSerializationReader.cs
- SafeNativeMethodsMilCoreApi.cs
- InstanceDataCollectionCollection.cs
- LineInfo.cs
- VersionPair.cs
- TextDecorations.cs
- _AcceptOverlappedAsyncResult.cs
- BufferedReceiveManager.cs
- ExceptionNotification.cs
- Calendar.cs
- GZipUtils.cs
- BuildProviderCollection.cs
- HwndProxyElementProvider.cs
- VirtualDirectoryMapping.cs
- StylusButton.cs
- ObservableCollection.cs
- SqlFlattener.cs
- ListView.cs
- ServiceBusyException.cs
- EmptyImpersonationContext.cs
- SystemIPAddressInformation.cs
- DataListItem.cs
- WorkflowControlEndpoint.cs
- RankException.cs
- SplitContainer.cs
- WorkflowNamespace.cs
- Quad.cs
- CalendarDayButton.cs
- Button.cs
- IgnorePropertiesAttribute.cs
- ThemeableAttribute.cs
- PictureBox.cs
- Unit.cs
- InvokeWebService.cs
- SecurityTokenException.cs
- EventsTab.cs
- UIPropertyMetadata.cs
- DataControlFieldCell.cs
- BufferedStream.cs
- AsymmetricSignatureDeformatter.cs
- PrePostDescendentsWalker.cs
- UnsafeNativeMethods.cs
- DeviceFiltersSection.cs
- DrawItemEvent.cs
- NameSpaceExtractor.cs
- Sql8ConformanceChecker.cs
- Inline.cs