Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CompositionCommandSet.cs
- PopupRootAutomationPeer.cs
- TextRange.cs
- Helpers.cs
- FixedTextBuilder.cs
- MachineKeyValidationConverter.cs
- FormsAuthenticationConfiguration.cs
- ValidationResult.cs
- DoubleCollectionValueSerializer.cs
- TypeDescriptor.cs
- DesignTimeParseData.cs
- SharedDp.cs
- DateTimeUtil.cs
- EntityProviderFactory.cs
- FrugalList.cs
- EventItfInfo.cs
- SafeEventLogWriteHandle.cs
- DefaultValueConverter.cs
- AppDomainUnloadedException.cs
- ToolStripRenderer.cs
- XmlCodeExporter.cs
- Ray3DHitTestResult.cs
- FileNotFoundException.cs
- DefaultCompensation.cs
- SplineKeyFrames.cs
- DocumentXmlWriter.cs
- DocumentOrderQuery.cs
- DecimalAnimationUsingKeyFrames.cs
- VBIdentifierNameEditor.cs
- HttpProtocolImporter.cs
- SerializerProvider.cs
- TransformProviderWrapper.cs
- _TimerThread.cs
- RepeatBehaviorConverter.cs
- StorageBasedPackageProperties.cs
- ContainerUIElement3D.cs
- PreProcessor.cs
- DelegateSerializationHolder.cs
- OrCondition.cs
- UnicastIPAddressInformationCollection.cs
- ColumnMapVisitor.cs
- UIElement3DAutomationPeer.cs
- WindowsGraphics.cs
- OutputCacheSettingsSection.cs
- ContextInformation.cs
- StringUtil.cs
- RadioButtonPopupAdapter.cs
- ExportOptions.cs
- ConfigurationStrings.cs
- SHA256CryptoServiceProvider.cs
- DbConnectionStringBuilder.cs
- ObjectViewQueryResultData.cs
- TemplateManager.cs
- AnnotationComponentManager.cs
- WindowsGraphicsCacheManager.cs
- OleAutBinder.cs
- UserPreferenceChangingEventArgs.cs
- StateBag.cs
- WindowsGraphics2.cs
- TableColumnCollection.cs
- LoginView.cs
- SqlFactory.cs
- MDIControlStrip.cs
- ImageCollectionCodeDomSerializer.cs
- XmlAutoDetectWriter.cs
- VisualTreeUtils.cs
- ToolboxItemAttribute.cs
- Content.cs
- Authorization.cs
- ParserStack.cs
- XmlArrayAttribute.cs
- EntityDataSourceWrapperCollection.cs
- Events.cs
- MailAddress.cs
- DataChangedEventManager.cs
- BatchParser.cs
- DES.cs
- StringCollection.cs
- DbProviderServices.cs
- StreamingContext.cs
- LogExtentCollection.cs
- PointF.cs
- InputScopeAttribute.cs
- DataRecordInternal.cs
- SqlDependency.cs
- ByteStream.cs
- GroupBoxDesigner.cs
- MaterializeFromAtom.cs
- StringCollectionMarkupSerializer.cs
- RectConverter.cs
- DesignerDeviceConfig.cs
- PageClientProxyGenerator.cs
- CompModSwitches.cs
- SortFieldComparer.cs
- SapiGrammar.cs
- GridViewSelectEventArgs.cs
- ResourceKey.cs
- EdmType.cs
- xsdvalidator.cs
- AssemblyNameProxy.cs