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
- PathSegment.cs
- Size3DConverter.cs
- GridViewHeaderRowPresenter.cs
- LicenseProviderAttribute.cs
- PrintPreviewGraphics.cs
- _NestedSingleAsyncResult.cs
- Single.cs
- StartUpEventArgs.cs
- MediaElementAutomationPeer.cs
- WizardSideBarListControlItem.cs
- AuthenticationService.cs
- TargetFrameworkAttribute.cs
- OwnerDrawPropertyBag.cs
- ASCIIEncoding.cs
- XmlSchemaGroupRef.cs
- HostingEnvironmentWrapper.cs
- CrossContextChannel.cs
- RelationshipSet.cs
- Schema.cs
- ConstructorNeedsTagAttribute.cs
- SecondaryIndexDefinition.cs
- TypedServiceOperationListItem.cs
- ZipIOLocalFileBlock.cs
- UIElementAutomationPeer.cs
- DataKey.cs
- PropertyInformation.cs
- DoubleLink.cs
- RunClient.cs
- Qualifier.cs
- XmlIlGenerator.cs
- XmlUnspecifiedAttribute.cs
- ClosableStream.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SafeHandles.cs
- TabControl.cs
- TileBrush.cs
- BitmapSourceSafeMILHandle.cs
- SchemaTableOptionalColumn.cs
- AttachInfo.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XPathEmptyIterator.cs
- DbParameterCollectionHelper.cs
- WinHttpWebProxyFinder.cs
- ISessionStateStore.cs
- SelectionManager.cs
- SecureUICommand.cs
- DesignerExtenders.cs
- DataServiceQueryException.cs
- VerticalAlignConverter.cs
- ImageCreator.cs
- QilGenerator.cs
- DataServiceKeyAttribute.cs
- DataBoundControlHelper.cs
- CharacterBuffer.cs
- GroupLabel.cs
- DrawListViewItemEventArgs.cs
- ContentOperations.cs
- _Rfc2616CacheValidators.cs
- MembershipPasswordException.cs
- HierarchicalDataBoundControlAdapter.cs
- RowSpanVector.cs
- JavaScriptObjectDeserializer.cs
- SystemTcpStatistics.cs
- PinnedBufferMemoryStream.cs
- MatrixTransform3D.cs
- errorpatternmatcher.cs
- FileClassifier.cs
- RtType.cs
- GPRECTF.cs
- SoapSchemaMember.cs
- HtmlShimManager.cs
- ValueQuery.cs
- JsonFormatMapping.cs
- TimeSpanFormat.cs
- XmlObjectSerializerWriteContext.cs
- TimeoutConverter.cs
- TextSpan.cs
- ProvidersHelper.cs
- NegotiateStream.cs
- PerformanceCounterLib.cs
- CachedTypeface.cs
- ProcessModelSection.cs
- SchemaElementDecl.cs
- ServiceMetadataExtension.cs
- SocketCache.cs
- EncoderReplacementFallback.cs
- ToolStripContentPanel.cs
- RijndaelManagedTransform.cs
- TextReturnReader.cs
- StringResourceManager.cs
- WpfKnownType.cs
- DynamicControl.cs
- SqlCommandBuilder.cs
- TextMetrics.cs
- CombinedGeometry.cs
- DataStreamFromComStream.cs
- Translator.cs
- XmlRootAttribute.cs
- DbConnectionPoolOptions.cs
- RC2CryptoServiceProvider.cs