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
- FlowDocumentScrollViewerAutomationPeer.cs
- GrowingArray.cs
- IndentedWriter.cs
- DbSetClause.cs
- TableRowGroup.cs
- TemplateParser.cs
- TwoPhaseCommit.cs
- ModelItemImpl.cs
- HandlerWithFactory.cs
- CallContext.cs
- TabItemAutomationPeer.cs
- X509Extension.cs
- TrackingProvider.cs
- arabicshape.cs
- RequestCacheValidator.cs
- COM2PictureConverter.cs
- SqlTypesSchemaImporter.cs
- EpmSourceTree.cs
- FixedPage.cs
- Rect.cs
- ParameterReplacerVisitor.cs
- SettingsSection.cs
- StatusBar.cs
- InputLanguage.cs
- DoubleLinkListEnumerator.cs
- DragCompletedEventArgs.cs
- DataGrid.cs
- DataGridViewComboBoxColumn.cs
- WindowsListViewItem.cs
- ImageBrush.cs
- DecimalAnimationUsingKeyFrames.cs
- Literal.cs
- GroupQuery.cs
- OneWayBindingElement.cs
- SuppressIldasmAttribute.cs
- FlowLayout.cs
- RestHandlerFactory.cs
- ValueExpressions.cs
- TrustManager.cs
- COM2Properties.cs
- XmlElement.cs
- shaperfactoryquerycachekey.cs
- DirectoryInfo.cs
- WindowsListViewGroupSubsetLink.cs
- ThreadPool.cs
- entitydatasourceentitysetnameconverter.cs
- LogManagementAsyncResult.cs
- DeferredRunTextReference.cs
- ImageAnimator.cs
- CursorConverter.cs
- ZipIOExtraFieldElement.cs
- DrawingGroup.cs
- ActivityContext.cs
- DbConnectionPool.cs
- FacetValues.cs
- StrongName.cs
- WindowsScrollBarBits.cs
- TextTreeUndo.cs
- XmlDesignerDataSourceView.cs
- SimpleHandlerFactory.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TextEndOfLine.cs
- ComplexBindingPropertiesAttribute.cs
- EdmTypeAttribute.cs
- SelectionHighlightInfo.cs
- UInt32Storage.cs
- PreservationFileReader.cs
- WpfSharedXamlSchemaContext.cs
- Triangle.cs
- TargetControlTypeAttribute.cs
- SortDescriptionCollection.cs
- SafeProcessHandle.cs
- Inline.cs
- ExpressionBuilderCollection.cs
- FileLevelControlBuilderAttribute.cs
- LogReservationCollection.cs
- Exceptions.cs
- TreeViewEvent.cs
- DictionaryItemsCollection.cs
- RectKeyFrameCollection.cs
- HtmlTextArea.cs
- DataGridViewSortCompareEventArgs.cs
- ListViewGroupItemCollection.cs
- RequestCacheValidator.cs
- FixedSOMLineRanges.cs
- Utils.cs
- DiscriminatorMap.cs
- CapacityStreamGeometryContext.cs
- PackagingUtilities.cs
- CreateDataSourceDialog.cs
- SmiEventSink_DeferedProcessing.cs
- ThreadPool.cs
- DurableInstancingOptions.cs
- PointHitTestParameters.cs
- RequestSecurityTokenResponse.cs
- SamlAssertionKeyIdentifierClause.cs
- UrlParameterReader.cs
- SmtpLoginAuthenticationModule.cs
- StrokeDescriptor.cs
- PlatformNotSupportedException.cs