Code:
/ FX-1434 / FX-1434 / 1.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
- PropagatorResult.cs
- XmlSchemaAnnotated.cs
- Latin1Encoding.cs
- ObjectQuery.cs
- EastAsianLunisolarCalendar.cs
- HandlerMappingMemo.cs
- Attributes.cs
- InheritanceContextHelper.cs
- WebPartManager.cs
- ResourceProperty.cs
- printdlgexmarshaler.cs
- DocumentDesigner.cs
- ContainsRowNumberChecker.cs
- Rotation3DKeyFrameCollection.cs
- EventLogPermissionAttribute.cs
- XamlGridLengthSerializer.cs
- MatrixCamera.cs
- DependencyObjectPropertyDescriptor.cs
- CollectionChangeEventArgs.cs
- WebPartExportVerb.cs
- ConnectionPointCookie.cs
- TogglePatternIdentifiers.cs
- ProcessThreadCollection.cs
- AnonymousIdentificationSection.cs
- _RequestCacheProtocol.cs
- CachedTypeface.cs
- ObjectCache.cs
- XmlSchemaComplexContent.cs
- PersonalizationProvider.cs
- TypeRestriction.cs
- TextInfo.cs
- SecurityException.cs
- CryptoConfig.cs
- CodeDomConfigurationHandler.cs
- TypeConverterAttribute.cs
- XmlSignatureProperties.cs
- RouteCollection.cs
- LinkDesigner.cs
- Mutex.cs
- TextDecorationCollection.cs
- ToolStripManager.cs
- SafeEventLogReadHandle.cs
- PersonalizablePropertyEntry.cs
- IntSecurity.cs
- BufferModesCollection.cs
- XhtmlBasicPhoneCallAdapter.cs
- ReadOnlyAttribute.cs
- StringUtil.cs
- OleDbRowUpdatedEvent.cs
- DocumentPaginator.cs
- entityreference_tresulttype.cs
- Paragraph.cs
- ExtendedProtectionPolicyTypeConverter.cs
- FreezableDefaultValueFactory.cs
- CodeTypeReferenceCollection.cs
- SequenceDesigner.cs
- Variant.cs
- DataGridColumnEventArgs.cs
- ListBindableAttribute.cs
- CopyAction.cs
- PropertyPath.cs
- Attributes.cs
- ValueSerializerAttribute.cs
- remotingproxy.cs
- Matrix.cs
- WebResourceUtil.cs
- DownloadProgressEventArgs.cs
- RelationshipConverter.cs
- ButtonRenderer.cs
- ExceptionUtil.cs
- OleDbCommand.cs
- GeneratedCodeAttribute.cs
- MemoryRecordBuffer.cs
- RequestCacheValidator.cs
- SendReply.cs
- BaseInfoTable.cs
- SerialReceived.cs
- XamlNamespaceHelper.cs
- securitycriticaldataClass.cs
- X509SecurityTokenAuthenticator.cs
- CodeEventReferenceExpression.cs
- XmlChildEnumerator.cs
- SmiEventSink_DeferedProcessing.cs
- StsCommunicationException.cs
- ResourceAttributes.cs
- ResourceWriter.cs
- BindingGraph.cs
- MouseGestureConverter.cs
- MethodExpr.cs
- QuaternionAnimation.cs
- AttributeCollection.cs
- ExtenderProviderService.cs
- FontInfo.cs
- Button.cs
- HandlerWithFactory.cs
- ContextMenuStrip.cs
- BitmapEffectCollection.cs
- BigInt.cs
- WorkflowView.cs
- NumericUpDown.cs