Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / GridItemCollection.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UInt64Storage.cs
- Win32PrintDialog.cs
- RichTextBoxContextMenu.cs
- HtmlTableRow.cs
- PTManager.cs
- WebProxyScriptElement.cs
- TimeSpanStorage.cs
- GlobalizationSection.cs
- List.cs
- FixedTextPointer.cs
- CreateUserErrorEventArgs.cs
- RotateTransform3D.cs
- AutomationIdentifier.cs
- GradientStop.cs
- Schema.cs
- FixedSOMPageElement.cs
- baseshape.cs
- ColorTransform.cs
- TextSerializer.cs
- Light.cs
- DataControlFieldHeaderCell.cs
- Nullable.cs
- RegexWorker.cs
- HttpDebugHandler.cs
- _NegoState.cs
- XmlSchemaSubstitutionGroup.cs
- BuildProviderAppliesToAttribute.cs
- Int16Storage.cs
- CmsInterop.cs
- WebAdminConfigurationHelper.cs
- SqlConnectionHelper.cs
- QueryCursorEventArgs.cs
- SurrogateEncoder.cs
- AdRotator.cs
- MultiView.cs
- MbpInfo.cs
- KeysConverter.cs
- StorageComplexTypeMapping.cs
- HtmlShimManager.cs
- ServiceReflector.cs
- SelectionPatternIdentifiers.cs
- IssuedTokenClientCredential.cs
- DataGridItemEventArgs.cs
- SevenBitStream.cs
- HijriCalendar.cs
- DataPointer.cs
- OdbcError.cs
- CryptoProvider.cs
- CaseKeyBox.ViewModel.cs
- AsnEncodedData.cs
- WindowsListViewScroll.cs
- FixedBufferAttribute.cs
- HotSpotCollection.cs
- StringInfo.cs
- FileLoadException.cs
- Stroke2.cs
- XmlSchemaComplexContentExtension.cs
- XmlAttributeProperties.cs
- Dynamic.cs
- MethodToken.cs
- activationcontext.cs
- DbInsertCommandTree.cs
- PatternMatchRules.cs
- RouteItem.cs
- HttpInputStream.cs
- BaseUriHelper.cs
- PixelFormats.cs
- SQLChars.cs
- WebPartConnectionsCancelVerb.cs
- WebRequestModuleElementCollection.cs
- DataObjectSettingDataEventArgs.cs
- SqlFileStream.cs
- CompiledQueryCacheEntry.cs
- PartitionedStreamMerger.cs
- ConfigXmlSignificantWhitespace.cs
- QuestionEventArgs.cs
- SoapSchemaExporter.cs
- ContractNamespaceAttribute.cs
- SafeRegistryHandle.cs
- SingletonInstanceContextProvider.cs
- FlowDocumentView.cs
- CaseKeyBox.xaml.cs
- FrameworkPropertyMetadata.cs
- SafeCertificateContext.cs
- CodeGen.cs
- DisplayMemberTemplateSelector.cs
- TypeConverterHelper.cs
- EntityStoreSchemaFilterEntry.cs
- StatusBarPanelClickEvent.cs
- NameTable.cs
- SerializationInfoEnumerator.cs
- MsmqHostedTransportConfiguration.cs
- LassoSelectionBehavior.cs
- UIElement.cs
- FontUnit.cs
- BooleanExpr.cs
- LogSwitch.cs
- WindowsGraphicsWrapper.cs
- SendKeys.cs
- ValueExpressions.cs