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
- XmlElement.cs
- DesignerVerb.cs
- dbdatarecord.cs
- CmsInterop.cs
- webproxy.cs
- ComponentRenameEvent.cs
- OleDbStruct.cs
- ZoomComboBox.cs
- WebPartRestoreVerb.cs
- EarlyBoundInfo.cs
- GeometryValueSerializer.cs
- StrokeNode.cs
- RegexGroup.cs
- DisplayNameAttribute.cs
- UtilityExtension.cs
- RadioButton.cs
- MouseOverProperty.cs
- SignatureResourceHelper.cs
- WebPartConnectionsConnectVerb.cs
- ObjectSpanRewriter.cs
- WebPartHelpVerb.cs
- SchemaTableColumn.cs
- DefaultTraceListener.cs
- HtmlGenericControl.cs
- Soap12ProtocolReflector.cs
- HttpPostLocalhostServerProtocol.cs
- BorderSidesEditor.cs
- ContainerSelectorGlyph.cs
- ProviderUtil.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CacheHelper.cs
- AstNode.cs
- ListViewItem.cs
- EdmFunction.cs
- XmlExtensionFunction.cs
- DoubleLinkList.cs
- ExtensionWindow.cs
- TimeSpanValidatorAttribute.cs
- CreateUserWizardStep.cs
- _NetRes.cs
- ButtonRenderer.cs
- Utilities.cs
- DocumentViewerConstants.cs
- FullTextLine.cs
- X509Certificate2.cs
- GreaterThanOrEqual.cs
- ReadOnlyHierarchicalDataSourceView.cs
- OleDbTransaction.cs
- EntityContainerEmitter.cs
- MetadataCacheItem.cs
- LinkArea.cs
- RetrieveVirtualItemEventArgs.cs
- RoutedEventHandlerInfo.cs
- RealizationDrawingContextWalker.cs
- CachedFontFace.cs
- Storyboard.cs
- ControlAdapter.cs
- Attributes.cs
- ParameterRetriever.cs
- GenericTypeParameterBuilder.cs
- NavigatorOutput.cs
- SQLRoleProvider.cs
- HitTestWithPointDrawingContextWalker.cs
- ItemMap.cs
- MarkupWriter.cs
- PipelineModuleStepContainer.cs
- BamlLocalizer.cs
- WindowsClientElement.cs
- ConnectorEditor.cs
- AdapterUtil.cs
- DisposableCollectionWrapper.cs
- HtmlControlPersistable.cs
- CLRBindingWorker.cs
- ServiceHttpHandlerFactory.cs
- DoubleMinMaxAggregationOperator.cs
- NativeMethods.cs
- FileRecordSequence.cs
- RenderDataDrawingContext.cs
- DoWorkEventArgs.cs
- EmissiveMaterial.cs
- WebRequestModulesSection.cs
- CodeTypeDelegate.cs
- ChooseAction.cs
- WindowsListViewItemCheckBox.cs
- safex509handles.cs
- RoutedPropertyChangedEventArgs.cs
- InteropBitmapSource.cs
- FileDialogPermission.cs
- EUCJPEncoding.cs
- DirectionalLight.cs
- JulianCalendar.cs
- DecimalConverter.cs
- ToolStripSplitStackLayout.cs
- AnonymousIdentificationModule.cs
- ManagementException.cs
- XmlSchemaComplexContentRestriction.cs
- ClientSideQueueItem.cs
- DesignerTransaction.cs
- XNameTypeConverter.cs
- DocumentationServerProtocol.cs