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
- DetailsViewRow.cs
- FastPropertyAccessor.cs
- CryptoKeySecurity.cs
- MediaElement.cs
- CaseExpr.cs
- HtmlInputReset.cs
- TextTreePropertyUndoUnit.cs
- SmtpMail.cs
- DefaultDialogButtons.cs
- ComEventsMethod.cs
- EntityDataReader.cs
- IndexedEnumerable.cs
- recordstatefactory.cs
- AssemblyAssociatedContentFileAttribute.cs
- ObjectCache.cs
- Size3D.cs
- SystemIcons.cs
- DrawingBrush.cs
- DES.cs
- ComponentSerializationService.cs
- DeriveBytes.cs
- ProxyRpc.cs
- CommandBinding.cs
- Fonts.cs
- ComPlusDiagnosticTraceRecords.cs
- OpCellTreeNode.cs
- ListenerServiceInstallComponent.cs
- ContractDescription.cs
- RemotingConfigParser.cs
- UnsafeNativeMethods.cs
- OdbcConnectionHandle.cs
- Native.cs
- ConfigurationValues.cs
- QilVisitor.cs
- XmlComplianceUtil.cs
- SiteMapNodeCollection.cs
- RelationshipDetailsRow.cs
- UniqueEventHelper.cs
- Point4DConverter.cs
- Expr.cs
- ReadOnlyState.cs
- DisableDpiAwarenessAttribute.cs
- SrgsDocument.cs
- DbParameterCollectionHelper.cs
- MethodExpr.cs
- SessionStateItemCollection.cs
- LockRecursionException.cs
- DialogResultConverter.cs
- EntityProviderServices.cs
- SQlBooleanStorage.cs
- DesignerSerializationVisibilityAttribute.cs
- DbParameterCollection.cs
- Composition.cs
- ZipArchive.cs
- KeyInterop.cs
- PropertyTab.cs
- TaskHelper.cs
- GridSplitter.cs
- ColorIndependentAnimationStorage.cs
- OperationResponse.cs
- SqlDataSourceQueryEditorForm.cs
- DoubleAnimationClockResource.cs
- CmsUtils.cs
- TargetFrameworkUtil.cs
- ExpressionLexer.cs
- DataStorage.cs
- MailHeaderInfo.cs
- Package.cs
- TemplateXamlTreeBuilder.cs
- Expressions.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- PropertyChange.cs
- SurrogateSelector.cs
- ImageListStreamer.cs
- Win32Interop.cs
- CustomAttributeSerializer.cs
- IdentityReference.cs
- CallSiteOps.cs
- Number.cs
- HtmlHead.cs
- PageEventArgs.cs
- HttpListenerException.cs
- SafeHandles.cs
- RegexParser.cs
- LayoutDump.cs
- GridViewPageEventArgs.cs
- PerformanceCounter.cs
- CannotUnloadAppDomainException.cs
- Selection.cs
- OleDbConnection.cs
- MetricEntry.cs
- Quaternion.cs
- FixedFlowMap.cs
- ResolveInfo.cs
- CompareInfo.cs
- CompareValidator.cs
- filewebresponse.cs
- NetworkInformationException.cs
- HttpModuleCollection.cs
- XmlSchemaAttributeGroup.cs