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
- StreamSecurityUpgradeAcceptorBase.cs
- ServiceModelSectionGroup.cs
- HwndSourceParameters.cs
- Quaternion.cs
- SqlClientPermission.cs
- ReverseInheritProperty.cs
- DocumentApplication.cs
- CompoundFileStreamReference.cs
- ListViewSortEventArgs.cs
- StyleTypedPropertyAttribute.cs
- IWorkflowDebuggerService.cs
- PathNode.cs
- HotSpotCollection.cs
- CompressEmulationStream.cs
- ChangeProcessor.cs
- DefaultObjectMappingItemCollection.cs
- SmtpDateTime.cs
- typedescriptorpermission.cs
- Stack.cs
- _NestedSingleAsyncResult.cs
- Profiler.cs
- FlowNode.cs
- IconEditor.cs
- XmlSchemaSimpleContentExtension.cs
- Stroke.cs
- QueryCacheManager.cs
- Typeface.cs
- RequestNavigateEventArgs.cs
- MobileControlsSectionHandler.cs
- validationstate.cs
- TreeViewAutomationPeer.cs
- OleDbReferenceCollection.cs
- DropDownList.cs
- ShapingWorkspace.cs
- COM2ExtendedTypeConverter.cs
- Matrix.cs
- EntityProviderServices.cs
- XmlEnumAttribute.cs
- DataGridViewColumnStateChangedEventArgs.cs
- KeyGestureValueSerializer.cs
- BamlLocalizableResourceKey.cs
- WindowsGraphicsWrapper.cs
- ComAdminWrapper.cs
- PathSegmentCollection.cs
- DbProviderFactory.cs
- WebResourceAttribute.cs
- BamlResourceSerializer.cs
- GeneratedCodeAttribute.cs
- IApplicationTrustManager.cs
- ProviderCollection.cs
- XPathExpr.cs
- PlaceHolder.cs
- CryptoProvider.cs
- PropertyStore.cs
- CqlQuery.cs
- infer.cs
- QilNode.cs
- TextRunCache.cs
- NativeMethods.cs
- TextBreakpoint.cs
- UriTemplateVariablePathSegment.cs
- ListComponentEditorPage.cs
- D3DImage.cs
- NativeMethods.cs
- ChangeBlockUndoRecord.cs
- XmlnsPrefixAttribute.cs
- ScrollBarAutomationPeer.cs
- KeyPressEvent.cs
- FrameworkPropertyMetadata.cs
- OraclePermissionAttribute.cs
- OperandQuery.cs
- SchemaDeclBase.cs
- DescendantBaseQuery.cs
- TCEAdapterGenerator.cs
- ActivityExecutor.cs
- ResourcePermissionBase.cs
- Int32Rect.cs
- Stackframe.cs
- TimeZone.cs
- _ListenerRequestStream.cs
- XPathNavigatorKeyComparer.cs
- SqlDependencyListener.cs
- XmlAttributes.cs
- ProcessInputEventArgs.cs
- PagesChangedEventArgs.cs
- XPathException.cs
- VolatileEnlistmentState.cs
- ThemeableAttribute.cs
- DbConnectionPool.cs
- ZipIOLocalFileBlock.cs
- recordstatescratchpad.cs
- ApplyTemplatesAction.cs
- TextEffect.cs
- FormViewRow.cs
- hebrewshape.cs
- DrawingGroup.cs
- BaseTemplateParser.cs
- WindowsSecurityToken.cs
- OutKeywords.cs
- ComponentEditorForm.cs