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
- QuaternionAnimationBase.cs
- NotifyIcon.cs
- VirtualStackFrame.cs
- WinFormsUtils.cs
- WebPartTransformer.cs
- SqlUtil.cs
- CompilerError.cs
- RequestSecurityTokenResponse.cs
- CommandBindingCollection.cs
- EncodingNLS.cs
- SecurityKeyIdentifier.cs
- TdsParser.cs
- MeshGeometry3D.cs
- Quaternion.cs
- WSSecureConversationDec2005.cs
- OleDbTransaction.cs
- FormViewCommandEventArgs.cs
- DataGridViewCellFormattingEventArgs.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- GridToolTip.cs
- Validator.cs
- StateDesigner.Layouts.cs
- ToolStripControlHost.cs
- ResXResourceSet.cs
- TextEndOfParagraph.cs
- ProcessInfo.cs
- Attachment.cs
- CompositeFontParser.cs
- DrawingAttributeSerializer.cs
- ImageClickEventArgs.cs
- WindowsScrollBar.cs
- LinqToSqlWrapper.cs
- CompilerHelpers.cs
- UndirectedGraph.cs
- XDeferredAxisSource.cs
- XmlTextWriter.cs
- LambdaCompiler.Statements.cs
- SoapRpcMethodAttribute.cs
- RuntimeConfigLKG.cs
- HttpWebResponse.cs
- ReaderContextStackData.cs
- XmlValueConverter.cs
- ContractMapping.cs
- CacheModeConverter.cs
- DataList.cs
- HelpInfo.cs
- ThemeDictionaryExtension.cs
- WaitHandleCannotBeOpenedException.cs
- DataGridViewTopRowAccessibleObject.cs
- ExpressionBindingCollection.cs
- EdmComplexTypeAttribute.cs
- PropertyValue.cs
- ListenerAdapter.cs
- _WinHttpWebProxyDataBuilder.cs
- ScrollPatternIdentifiers.cs
- AppSettingsExpressionBuilder.cs
- DataTemplateKey.cs
- DataRelationPropertyDescriptor.cs
- Context.cs
- SurrogateChar.cs
- DataFormat.cs
- filewebrequest.cs
- WebBrowserNavigatingEventHandler.cs
- FirstMatchCodeGroup.cs
- NetWebProxyFinder.cs
- MultiByteCodec.cs
- RectangleGeometry.cs
- SimpleWebHandlerParser.cs
- PolicyStatement.cs
- FileSystemEventArgs.cs
- StructuredType.cs
- Preprocessor.cs
- TypeSystem.cs
- ConnectionAcceptor.cs
- X509SecurityToken.cs
- Cursor.cs
- TemplateField.cs
- ProfileModule.cs
- HuffmanTree.cs
- DynamicResourceExtension.cs
- StandardOleMarshalObject.cs
- ButtonBaseAutomationPeer.cs
- InternalDispatchObject.cs
- CriticalHandle.cs
- MimeTypeMapper.cs
- SiteOfOriginPart.cs
- SmtpCommands.cs
- PageThemeParser.cs
- WriteTimeStream.cs
- NotImplementedException.cs
- CopyOnWriteList.cs
- DataKeyArray.cs
- ExpressionConverter.cs
- InvokeGenerator.cs
- ErrorProvider.cs
- DateTimeOffsetStorage.cs
- NativeObjectSecurity.cs
- ActiveXHost.cs
- AllMembershipCondition.cs
- FixedTextContainer.cs