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
- TextSchema.cs
- IProducerConsumerCollection.cs
- HttpPostedFile.cs
- ConfigurationManagerInternalFactory.cs
- ServiceBuildProvider.cs
- ReflectTypeDescriptionProvider.cs
- ResourceWriter.cs
- PerspectiveCamera.cs
- SQLGuid.cs
- AudioException.cs
- Utils.cs
- SynchronizationScope.cs
- Part.cs
- System.Data_BID.cs
- FileDialog_Vista_Interop.cs
- BitmapEffectCollection.cs
- XmlDocument.cs
- SqlDataSourceStatusEventArgs.cs
- MenuItemCollectionEditor.cs
- PeerNameRecord.cs
- MembershipUser.cs
- BulletChrome.cs
- EnumValidator.cs
- MemoryFailPoint.cs
- Icon.cs
- SessionState.cs
- ScrollItemProviderWrapper.cs
- ListenerElementsCollection.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ArraySortHelper.cs
- StyleCollectionEditor.cs
- ComplexPropertyEntry.cs
- CommonDialog.cs
- SourceFilter.cs
- Int32.cs
- Internal.cs
- DataSpaceManager.cs
- AssemblyBuilder.cs
- GPPOINT.cs
- VisualState.cs
- PageOrientation.cs
- Int32Rect.cs
- AnnotationService.cs
- ResourceDescriptionAttribute.cs
- XmlSchemaResource.cs
- XmlILConstructAnalyzer.cs
- RijndaelCryptoServiceProvider.cs
- SuspendDesigner.cs
- Cursor.cs
- HttpValueCollection.cs
- XmlTextReaderImpl.cs
- SystemIPAddressInformation.cs
- FixedBufferAttribute.cs
- LifetimeServices.cs
- StrongNamePublicKeyBlob.cs
- TagNameToTypeMapper.cs
- SecurityAlgorithmSuiteConverter.cs
- ContextStack.cs
- ProviderIncompatibleException.cs
- TextTreeTextNode.cs
- IProducerConsumerCollection.cs
- ProfilePropertySettingsCollection.cs
- HiddenFieldDesigner.cs
- MatrixStack.cs
- _NativeSSPI.cs
- PageAsyncTaskManager.cs
- SeekStoryboard.cs
- XmlUnspecifiedAttribute.cs
- SmiEventSink.cs
- ObjectStateFormatter.cs
- BufferedMessageWriter.cs
- SendSecurityHeaderElement.cs
- FrameworkElementFactory.cs
- AdapterSwitches.cs
- ServiceThrottlingElement.cs
- BamlTreeUpdater.cs
- PopupControlService.cs
- SqlInternalConnectionTds.cs
- AxHostDesigner.cs
- _SafeNetHandles.cs
- TagMapInfo.cs
- OperatingSystem.cs
- PackageRelationshipSelector.cs
- ProfessionalColors.cs
- HttpProfileBase.cs
- TableCell.cs
- NotImplementedException.cs
- ClipboardProcessor.cs
- InputLanguageSource.cs
- MonitoringDescriptionAttribute.cs
- PropertyChangingEventArgs.cs
- FixedBufferAttribute.cs
- XmlWrappingWriter.cs
- CaseExpr.cs
- BuildResultCache.cs
- AutomationEvent.cs
- SqlProfileProvider.cs
- DataViewListener.cs
- MatrixTransform.cs
- XmlSchemaSimpleContent.cs