Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartZoneBase.cs
- XmlSerializerFactory.cs
- DecimalSumAggregationOperator.cs
- GridViewItemAutomationPeer.cs
- Menu.cs
- AuthenticationException.cs
- CardSpaceSelector.cs
- DiscoveryMessageSequence11.cs
- ActiveXSite.cs
- GuidConverter.cs
- WorkflowMarkupSerializerMapping.cs
- BaseValidatorDesigner.cs
- ZipIOModeEnforcingStream.cs
- ApplyImportsAction.cs
- GeneralTransform2DTo3D.cs
- GlobalizationSection.cs
- ExecutionContext.cs
- SafeReversePInvokeHandle.cs
- FontFaceLayoutInfo.cs
- WCFBuildProvider.cs
- XmlSerializableWriter.cs
- AdapterUtil.cs
- BindToObject.cs
- CodeGotoStatement.cs
- TextServicesHost.cs
- CodeMemberEvent.cs
- Update.cs
- XmlComplianceUtil.cs
- RecordConverter.cs
- SignatureSummaryDialog.cs
- DictionaryBase.cs
- MSAANativeProvider.cs
- OleDbRowUpdatingEvent.cs
- NameObjectCollectionBase.cs
- SymDocumentType.cs
- RenderData.cs
- DesignerInterfaces.cs
- SelectionRangeConverter.cs
- SmiContextFactory.cs
- ConfigXmlCDataSection.cs
- SqlError.cs
- BamlTreeNode.cs
- HtmlElementErrorEventArgs.cs
- CollectionViewSource.cs
- VirtualDirectoryMappingCollection.cs
- propertytag.cs
- RoleServiceManager.cs
- FontInfo.cs
- NoResizeSelectionBorderGlyph.cs
- Util.cs
- Light.cs
- SqlDataSource.cs
- _FtpControlStream.cs
- sqlmetadatafactory.cs
- EUCJPEncoding.cs
- ArrayHelper.cs
- InplaceBitmapMetadataWriter.cs
- TaiwanLunisolarCalendar.cs
- DataControlFieldCell.cs
- BuildProvider.cs
- SQLRoleProvider.cs
- SqlRowUpdatingEvent.cs
- ICspAsymmetricAlgorithm.cs
- DesignerDataSchemaClass.cs
- SiblingIterators.cs
- SHA1.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ProxyAttribute.cs
- AuthenticodeSignatureInformation.cs
- AuthenticatingEventArgs.cs
- NegationPusher.cs
- SQLBoolean.cs
- IntegerFacetDescriptionElement.cs
- StructureChangedEventArgs.cs
- Serializer.cs
- Misc.cs
- DesignerSerializationManager.cs
- RelationshipType.cs
- ErrorWrapper.cs
- IndexedString.cs
- KoreanCalendar.cs
- COM2IPerPropertyBrowsingHandler.cs
- SystemIPAddressInformation.cs
- SortExpressionBuilder.cs
- TextBox.cs
- AnnotationResourceChangedEventArgs.cs
- WithParamAction.cs
- PropertyTab.cs
- MultiView.cs
- Floater.cs
- TextRunCache.cs
- printdlgexmarshaler.cs
- XmlArrayItemAttribute.cs
- SmiXetterAccessMap.cs
- RelationshipNavigation.cs
- SiteMapDataSourceView.cs
- XPathNode.cs
- TextWriter.cs
- ConditionValidator.cs
- WebExceptionStatus.cs