Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / CustomMenuItemCollection.cs / 1 / CustomMenuItemCollection.cs
namespace System.Windows.Forms.Design { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Windows.Forms; ////// /// A strongly-typed collection that stores ToolStripMenuItem objects for DesignerContextMenu /// internal class CustomMenuItemCollection : CollectionBase { ////// /// Constructor /// public CustomMenuItemCollection() { } ////// /// Add value to the collection /// public int Add(ToolStripItem value) { return List.Add(value); } ////// /// Add range of values to the collection /// public void AddRange(ToolStripItem[] value) { for (int i = 0; (i < value.Length); i = (i + 1)) { this.Add(value[i]); } } ////// Abstract base class version for refreshing the items /// public virtual void RefreshItems() { } } } // 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
- X509CertificateTrustedIssuerElement.cs
- XmlBinaryReader.cs
- ObjectNotFoundException.cs
- InvokePatternIdentifiers.cs
- Rotation3DKeyFrameCollection.cs
- ConstraintEnumerator.cs
- EnterpriseServicesHelper.cs
- cookieexception.cs
- CodeAttributeArgumentCollection.cs
- ToolStripPanelCell.cs
- _MultipleConnectAsync.cs
- PropertyStore.cs
- NamespaceEmitter.cs
- UInt32.cs
- DependencyPropertyAttribute.cs
- EntityDesignerDataSourceView.cs
- LocationInfo.cs
- HwndTarget.cs
- AsymmetricSignatureDeformatter.cs
- KnownIds.cs
- AuthenticationManager.cs
- StickyNoteHelper.cs
- ListBox.cs
- LinqDataSourceHelper.cs
- XsltLoader.cs
- CodeChecksumPragma.cs
- HtmlGenericControl.cs
- BulletedListDesigner.cs
- CurrentChangingEventArgs.cs
- AutoCompleteStringCollection.cs
- sortedlist.cs
- PriorityQueue.cs
- TextTreeTextBlock.cs
- XmlSchemaInfo.cs
- ToolZone.cs
- WebMessageEncodingBindingElement.cs
- PasswordRecovery.cs
- SiteMapNode.cs
- SystemTcpStatistics.cs
- WebPartZoneCollection.cs
- ControlCachePolicy.cs
- DtcInterfaces.cs
- MethodInfo.cs
- TextEvent.cs
- GeneralTransformGroup.cs
- DbParameterHelper.cs
- RSAPKCS1SignatureFormatter.cs
- AsymmetricSignatureDeformatter.cs
- GAC.cs
- DataGridViewCellCancelEventArgs.cs
- WindowsPrincipal.cs
- ContainerVisual.cs
- ComponentDispatcher.cs
- XPathQueryGenerator.cs
- ProcessModelSection.cs
- OrthographicCamera.cs
- DbgUtil.cs
- ProviderCollection.cs
- ProxyHelper.cs
- DrawingState.cs
- VBCodeProvider.cs
- Label.cs
- AddInStore.cs
- SoapReflectionImporter.cs
- Object.cs
- StringResourceManager.cs
- ExtendedProtectionPolicy.cs
- CounterCreationDataCollection.cs
- XpsResourcePolicy.cs
- SimpleTableProvider.cs
- DllHostedComPlusServiceHost.cs
- FakeModelItemImpl.cs
- TypeUnloadedException.cs
- PartManifestEntry.cs
- PointAnimationUsingKeyFrames.cs
- XmlSchemaSimpleTypeRestriction.cs
- ListItemConverter.cs
- AppDomainFactory.cs
- Size3DConverter.cs
- FileVersionInfo.cs
- EmptyElement.cs
- CodeSnippetStatement.cs
- GeneralTransform2DTo3DTo2D.cs
- BamlMapTable.cs
- EventSourceCreationData.cs
- WebExceptionStatus.cs
- RuleInfoComparer.cs
- EdmMember.cs
- Properties.cs
- WorkflowServiceHost.cs
- ValidationErrorEventArgs.cs
- TraceLog.cs
- XpsFilter.cs
- ErrorWrapper.cs
- ValueCollectionParameterReader.cs
- CryptoApi.cs
- AppDomainUnloadedException.cs
- SolidBrush.cs
- TemplateKeyConverter.cs
- TemplateControlBuildProvider.cs