Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewControlCollection.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AuthenticationModuleElementCollection.cs
- CodeGen.cs
- BitmapEffectCollection.cs
- DesignerSerializationOptionsAttribute.cs
- StateMachineExecutionState.cs
- GridViewRowPresenterBase.cs
- HttpInputStream.cs
- DataBinder.cs
- LeaseManager.cs
- ExpressionNode.cs
- InternalCache.cs
- VectorCollectionValueSerializer.cs
- Decorator.cs
- __Filters.cs
- AvTrace.cs
- ChangeDirector.cs
- MostlySingletonList.cs
- DateTimeOffsetConverter.cs
- filewebresponse.cs
- PropertyItem.cs
- KeyProperty.cs
- TCPListener.cs
- SqlUtil.cs
- SqlUserDefinedTypeAttribute.cs
- DataRecordInternal.cs
- RemoteWebConfigurationHostStream.cs
- Fx.cs
- CatalogZoneDesigner.cs
- BaseDataListComponentEditor.cs
- Cursor.cs
- WindowsRegion.cs
- Inflater.cs
- UdpTransportSettings.cs
- BindingExpressionUncommonField.cs
- BorderGapMaskConverter.cs
- Model3DCollection.cs
- DataStorage.cs
- DynamicResourceExtension.cs
- MissingMethodException.cs
- Random.cs
- IChannel.cs
- AmbientLight.cs
- GroupLabel.cs
- RelationshipConverter.cs
- QuadraticBezierSegment.cs
- ReachDocumentPageSerializerAsync.cs
- DocumentOrderQuery.cs
- ConnectionPoolManager.cs
- EncoderFallback.cs
- BinaryParser.cs
- XmlException.cs
- baseshape.cs
- MethodAccessException.cs
- CreatingCookieEventArgs.cs
- DeleteMemberBinder.cs
- ColumnPropertiesGroup.cs
- UIElementPropertyUndoUnit.cs
- GPPOINT.cs
- MultiBindingExpression.cs
- InputLanguageProfileNotifySink.cs
- safelink.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- AnchoredBlock.cs
- XsdBuildProvider.cs
- RealizationDrawingContextWalker.cs
- NamespaceEmitter.cs
- AnalyzedTree.cs
- JoinTreeNode.cs
- AdjustableArrowCap.cs
- ExtendedPropertyCollection.cs
- ConsoleTraceListener.cs
- ColorTransformHelper.cs
- LinqDataSourceContextData.cs
- OptimizerPatterns.cs
- DataSourceControlBuilder.cs
- DecryptedHeader.cs
- SqlParameterizer.cs
- InlineUIContainer.cs
- SpellerHighlightLayer.cs
- BitmapDownload.cs
- PositiveTimeSpanValidatorAttribute.cs
- DetailsViewRowCollection.cs
- ConfigWriter.cs
- UmAlQuraCalendar.cs
- UInt16.cs
- Handle.cs
- DataGridViewRowPrePaintEventArgs.cs
- HttpContextBase.cs
- FontInfo.cs
- ModelVisual3D.cs
- RecognizedWordUnit.cs
- UnionExpr.cs
- StandardTransformFactory.cs
- MenuItemBindingCollection.cs
- RayHitTestParameters.cs
- PathGeometry.cs
- FocusTracker.cs
- WebPartCatalogAddVerb.cs
- WindowsComboBox.cs
- StrokeNodeEnumerator.cs