Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewControlCollection.cs / 1 / DataGridViewControlCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Collections; using System.Runtime.InteropServices; using System.Diagnostics.CodeAnalysis; namespace System.Windows.Forms { public partial class DataGridView { ///[ ComVisible(false), SuppressMessage("Microsoft.Design", "CA1010:CollectionsShouldImplementGenericInterface") // Consider adding an IList implementation ] public class DataGridViewControlCollection : Control.ControlCollection { DataGridView owner; /// public DataGridViewControlCollection(DataGridView owner) : base(owner) { this.owner = owner; } /// public void CopyTo(Control[] array, int index) { base.CopyTo(array, index); } /// public void Insert(int index, Control value) { ((IList)this).Insert(index, (object)value); } /// public override void Remove(Control value) { if (value != owner.horizScrollBar && value != owner.vertScrollBar && value != this.owner.editingPanel) { base.Remove(value); } } internal void RemoveInternal(Control value) { base.Remove(value); } /// public override void Clear() { for (int i = 0; i < this.Count; i++) { if (this[i] == this.owner.horizScrollBar || this[i] == this.owner.vertScrollBar || this[i] == this.owner.editingPanel) { continue; } else { Remove(this[i]); } } } } } } // 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
- arclist.cs
- SerializableReadOnlyDictionary.cs
- ConfigXmlCDataSection.cs
- Highlights.cs
- SynchronizedChannelCollection.cs
- BitmapEffectInput.cs
- ProviderMetadata.cs
- DesignerVerbCollection.cs
- GenerateTemporaryTargetAssembly.cs
- ConsumerConnectionPointCollection.cs
- OpenTypeLayout.cs
- CharUnicodeInfo.cs
- NonClientArea.cs
- HandoffBehavior.cs
- RoutedEventConverter.cs
- TrackingProfileSerializer.cs
- SafeWaitHandle.cs
- EtwProvider.cs
- XmlSerializerFactory.cs
- WeakReadOnlyCollection.cs
- ViewCellRelation.cs
- DataControlExtensions.cs
- XsdBuildProvider.cs
- AdCreatedEventArgs.cs
- DependencyObjectType.cs
- SqlFunctionAttribute.cs
- GenericUriParser.cs
- GcHandle.cs
- EntityDataSourceColumn.cs
- ContractMapping.cs
- SqlDataSourceCommandEventArgs.cs
- HttpHandlerAction.cs
- SHA256Managed.cs
- WebBrowserHelper.cs
- HitTestWithPointDrawingContextWalker.cs
- RequestCache.cs
- Empty.cs
- SqlDataSourceEnumerator.cs
- AttributeData.cs
- BasePropertyDescriptor.cs
- SingleObjectCollection.cs
- DbConnectionFactory.cs
- HtmlTableRowCollection.cs
- XmlChoiceIdentifierAttribute.cs
- Color.cs
- MembershipSection.cs
- XMLSchema.cs
- ModelEditingScope.cs
- BitmapMetadata.cs
- UTF8Encoding.cs
- PropertyManager.cs
- UnsignedPublishLicense.cs
- XmlBaseReader.cs
- TextPointerBase.cs
- PasswordPropertyTextAttribute.cs
- Point4DValueSerializer.cs
- CurrencyWrapper.cs
- TextBox.cs
- StylusCollection.cs
- StreamHelper.cs
- RC2CryptoServiceProvider.cs
- CatalogPart.cs
- SqlRetyper.cs
- ListDictionaryInternal.cs
- AttachmentCollection.cs
- EFColumnProvider.cs
- RegexNode.cs
- TypeDescriptor.cs
- ListView.cs
- Typeface.cs
- AffineTransform3D.cs
- ToolStripItemTextRenderEventArgs.cs
- WebMessageEncoderFactory.cs
- Dictionary.cs
- DispatcherFrame.cs
- VariableQuery.cs
- TableChangeProcessor.cs
- BaseUriHelper.cs
- DecoderNLS.cs
- QueryResult.cs
- WebPartConnectionsEventArgs.cs
- Pair.cs
- ExeConfigurationFileMap.cs
- TemplateColumn.cs
- DataGridViewCellLinkedList.cs
- NullableDoubleAverageAggregationOperator.cs
- ControlTemplate.cs
- ECDiffieHellmanPublicKey.cs
- XmlSchemaObjectCollection.cs
- CatalogPartChrome.cs
- MouseDevice.cs
- IntSumAggregationOperator.cs
- FocusTracker.cs
- RootBuilder.cs
- ContentFileHelper.cs
- BaseContextMenu.cs
- PeerObject.cs
- NavigatorInvalidBodyAccessException.cs
- WebServiceMethodData.cs
- ISAPIRuntime.cs