Code:
/ DotNET / DotNET / 8.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
- MatrixStack.cs
- DocumentReference.cs
- PropertyRecord.cs
- Expressions.cs
- DrawingCollection.cs
- BamlRecords.cs
- TdsParameterSetter.cs
- TreeNodeMouseHoverEvent.cs
- DocumentViewerBaseAutomationPeer.cs
- SchemaImporterExtensionElement.cs
- ItemCheckedEvent.cs
- ModelServiceImpl.cs
- EventHandlers.cs
- XPathDescendantIterator.cs
- ZipQueryOperator.cs
- CriticalFinalizerObject.cs
- HelpInfo.cs
- IUnknownConstantAttribute.cs
- ProfileSettingsCollection.cs
- XomlSerializationHelpers.cs
- ServiceOperationParameter.cs
- MappingMetadataHelper.cs
- ListViewItem.cs
- SignatureHelper.cs
- RuntimeResourceSet.cs
- ForEach.cs
- RequestCachePolicy.cs
- WebPartDisplayMode.cs
- storepermissionattribute.cs
- SqlUDTStorage.cs
- ToolStripItem.cs
- Codec.cs
- ManagementBaseObject.cs
- PathSegmentCollection.cs
- Window.cs
- FlowDocument.cs
- BufferModeSettings.cs
- OpenTypeLayoutCache.cs
- StrongBox.cs
- FieldAccessException.cs
- DateTimeConverter2.cs
- DataGridViewCellConverter.cs
- List.cs
- BaseParaClient.cs
- CqlParserHelpers.cs
- KeyNotFoundException.cs
- SetMemberBinder.cs
- BitArray.cs
- PeerNearMe.cs
- ClientSponsor.cs
- TemplatePropertyEntry.cs
- VectorCollectionConverter.cs
- ConsoleEntryPoint.cs
- LayoutDump.cs
- HttpCookiesSection.cs
- SafeHandles.cs
- ReflectTypeDescriptionProvider.cs
- HttpListenerResponse.cs
- TextPattern.cs
- HatchBrush.cs
- AdapterUtil.cs
- XmlSerializationReader.cs
- RectConverter.cs
- ListView.cs
- Wizard.cs
- CompilationLock.cs
- PixelShader.cs
- RemotingConfigParser.cs
- TextLineBreak.cs
- XDRSchema.cs
- CollectionChangeEventArgs.cs
- VisualStyleRenderer.cs
- DataGridView.cs
- UriScheme.cs
- CodeSnippetTypeMember.cs
- Pts.cs
- XmlDesignerDataSourceView.cs
- AutomationPropertyInfo.cs
- ManagementEventWatcher.cs
- Translator.cs
- XmlSubtreeReader.cs
- InfiniteIntConverter.cs
- GridEntry.cs
- RelAssertionDirectKeyIdentifierClause.cs
- DataTableClearEvent.cs
- _ConnectOverlappedAsyncResult.cs
- HtmlInputCheckBox.cs
- AssemblyInfo.cs
- HMAC.cs
- BitmapCacheBrush.cs
- MenuStrip.cs
- XmlDictionaryReaderQuotasElement.cs
- FileSystemEventArgs.cs
- StreamWriter.cs
- DesignBindingValueUIHandler.cs
- HostingEnvironmentException.cs
- XmlAttributeCollection.cs
- FormattedTextSymbols.cs
- EtwTrace.cs
- MultiSelectRootGridEntry.cs