Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / ContextMenuStripGroupCollection.cs / 1 / ContextMenuStripGroupCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Collections.Generic; using System.Text; using System.Collections; internal class ContextMenuStripGroupCollection : DictionaryBase { public ContextMenuStripGroupCollection() { } public ContextMenuStripGroup this[string key] { get { if (!this.InnerHashtable.ContainsKey(key)) { this.InnerHashtable[key] = new ContextMenuStripGroup(key); } return this.InnerHashtable[key] as ContextMenuStripGroup; } } public bool ContainsKey(string key) { return InnerHashtable.ContainsKey(key); } protected override void OnInsert(object key, object value) { if (!(value is ContextMenuStripGroup)) { throw new NotSupportedException(); } base.OnInsert(key, value); } protected override void OnSet(object key, object oldValue, object newValue) { if (!(newValue is ContextMenuStripGroup)) { throw new NotSupportedException(); } base.OnSet(key, oldValue, newValue); } } } // 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
- LinqDataSourceDisposeEventArgs.cs
- PostBackOptions.cs
- OrderByQueryOptionExpression.cs
- rsa.cs
- RegexCharClass.cs
- AttributeQuery.cs
- Content.cs
- HierarchicalDataSourceControl.cs
- SchemaComplexType.cs
- Deflater.cs
- XPathAxisIterator.cs
- DataGridComponentEditor.cs
- StringFormat.cs
- ToolStripItem.cs
- MulticastNotSupportedException.cs
- Deflater.cs
- BrowsableAttribute.cs
- SettingsPropertyValue.cs
- ItemContainerGenerator.cs
- ToolStripMenuItemDesigner.cs
- ArraySegment.cs
- CodePropertyReferenceExpression.cs
- BitmapMetadataEnumerator.cs
- ProviderCollection.cs
- BaseCollection.cs
- TableRowGroup.cs
- ControlParameter.cs
- TouchDevice.cs
- RequestQueryParser.cs
- LineServicesRun.cs
- BrushProxy.cs
- DoubleLinkList.cs
- Membership.cs
- XmlConvert.cs
- MenuItemStyle.cs
- CharKeyFrameCollection.cs
- PropertyDescriptorCollection.cs
- MultilineStringConverter.cs
- StringArrayConverter.cs
- InputMethodStateChangeEventArgs.cs
- ProviderManager.cs
- SchemaCollectionCompiler.cs
- CommonXSendMessage.cs
- WSSecureConversation.cs
- OracleColumn.cs
- CodeAttributeArgument.cs
- QuotaThrottle.cs
- ReferenceService.cs
- DNS.cs
- QuadraticEase.cs
- Timeline.cs
- SrgsOneOf.cs
- TypeDescriptorFilterService.cs
- Oci.cs
- TextMarkerSource.cs
- ClientSponsor.cs
- TypeExtensions.cs
- Stacktrace.cs
- SubtreeProcessor.cs
- XmlNodeChangedEventArgs.cs
- GeometryModel3D.cs
- ArrayConverter.cs
- QueryOptionExpression.cs
- LineBreak.cs
- GenericWebPart.cs
- BuildProviderAppliesToAttribute.cs
- _TLSstream.cs
- MemoryRecordBuffer.cs
- RequestCache.cs
- GuidelineSet.cs
- WebResourceUtil.cs
- CreateUserWizardStep.cs
- WindowInteractionStateTracker.cs
- TreeNode.cs
- Serializer.cs
- EditorBrowsableAttribute.cs
- SiteIdentityPermission.cs
- TransformerInfoCollection.cs
- ParameterCollection.cs
- DataRecordObjectView.cs
- UnsafeNativeMethodsTablet.cs
- CatalogPartChrome.cs
- Literal.cs
- WebPartZoneCollection.cs
- DataGridColumnHeaderAutomationPeer.cs
- SqlProfileProvider.cs
- RelationHandler.cs
- CompiledQuery.cs
- RemotingServices.cs
- ProtocolsConfiguration.cs
- ClientFormsIdentity.cs
- EntityTypeEmitter.cs
- InputEventArgs.cs
- GlobalEventManager.cs
- AnonymousIdentificationModule.cs
- SourceLocationProvider.cs
- XamlTreeBuilderBamlRecordWriter.cs
- XpsFilter.cs
- DbConnectionStringCommon.cs
- WebBrowserNavigatingEventHandler.cs