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
- EntityContainer.cs
- ConfigurationPropertyAttribute.cs
- AddInSegmentDirectoryNotFoundException.cs
- AggregateNode.cs
- ScriptReferenceEventArgs.cs
- QueryExecutionOption.cs
- dataSvcMapFileLoader.cs
- OrderedDictionary.cs
- SqlDependencyListener.cs
- IntSecurity.cs
- XmlAttributes.cs
- Tile.cs
- DispatcherExceptionFilterEventArgs.cs
- GridViewRowEventArgs.cs
- DataServiceQuery.cs
- DateTimeValueSerializerContext.cs
- MetadataItemSerializer.cs
- _ListenerRequestStream.cs
- DriveNotFoundException.cs
- FileSystemEventArgs.cs
- DefinitionUpdate.cs
- ConfigXmlAttribute.cs
- StandardOleMarshalObject.cs
- MembershipSection.cs
- QueueProcessor.cs
- GacUtil.cs
- HostedTransportConfigurationManager.cs
- MessageLogTraceRecord.cs
- Table.cs
- XpsDigitalSignature.cs
- SqlDataSourceSummaryPanel.cs
- MatrixUtil.cs
- MruCache.cs
- ClientSponsor.cs
- Base64Encoder.cs
- NativeMethods.cs
- MailAddressCollection.cs
- SendMailErrorEventArgs.cs
- XamlTypeMapper.cs
- ProxyWebPartManager.cs
- SecuritySessionFilter.cs
- ImageListUtils.cs
- StatusBarItemAutomationPeer.cs
- WindowsNonControl.cs
- LinkLabelLinkClickedEvent.cs
- ThemeInfoAttribute.cs
- ActiveXContainer.cs
- MenuRendererStandards.cs
- BulletedList.cs
- PropertyToken.cs
- ProjectionPruner.cs
- InputMethodStateChangeEventArgs.cs
- FileDialogCustomPlace.cs
- DiscoveryInnerClientAdhocCD1.cs
- JournalNavigationScope.cs
- ContextProperty.cs
- xmlglyphRunInfo.cs
- validation.cs
- XpsImage.cs
- HttpApplication.cs
- ErrorView.xaml.cs
- UserControlParser.cs
- AssemblyNameProxy.cs
- SafeRightsManagementHandle.cs
- BitmapCacheBrush.cs
- GifBitmapDecoder.cs
- WebPartConnectVerb.cs
- DataReaderContainer.cs
- InvalidWMPVersionException.cs
- BaseParagraph.cs
- ExceptionRoutedEventArgs.cs
- SID.cs
- AnnotationService.cs
- TypedRowGenerator.cs
- HandleRef.cs
- RunClient.cs
- WebPartConnectionsCloseVerb.cs
- SignedXml.cs
- GenericTextProperties.cs
- UnsafeNativeMethods.cs
- AssemblyNameProxy.cs
- PeerNameRecord.cs
- SignedPkcs7.cs
- GridToolTip.cs
- WebBaseEventKeyComparer.cs
- TypeSource.cs
- ReadOnlyAttribute.cs
- HttpProxyTransportBindingElement.cs
- MsmqException.cs
- FlowchartDesignerCommands.cs
- DesignerSerializationVisibilityAttribute.cs
- SiteMapNodeItemEventArgs.cs
- PathSegment.cs
- WindowVisualStateTracker.cs
- DesignBindingPicker.cs
- XmlSiteMapProvider.cs
- EndpointIdentity.cs
- FamilyMap.cs
- TypeForwardedToAttribute.cs
- Pair.cs