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
- HostingPreferredMapPath.cs
- Cursors.cs
- ButtonField.cs
- GridViewSortEventArgs.cs
- GPPOINT.cs
- ContentDisposition.cs
- DurableInstanceContextProvider.cs
- ResXResourceSet.cs
- VarInfo.cs
- Misc.cs
- ListViewAutomationPeer.cs
- FloaterBaseParagraph.cs
- FontResourceCache.cs
- UDPClient.cs
- QueueAccessMode.cs
- HatchBrush.cs
- ExtensionSimplifierMarkupObject.cs
- SimplePropertyEntry.cs
- LicenseManager.cs
- QilValidationVisitor.cs
- LogExtentCollection.cs
- TrackingProfile.cs
- uribuilder.cs
- ComponentChangedEvent.cs
- WindowsPen.cs
- StackSpiller.Generated.cs
- DPTypeDescriptorContext.cs
- Msec.cs
- NestPullup.cs
- LinqDataSourceUpdateEventArgs.cs
- LocationReferenceValue.cs
- EventHandlerService.cs
- DataGridColumnHeadersPresenter.cs
- InheritedPropertyChangedEventArgs.cs
- NotImplementedException.cs
- WinEventQueueItem.cs
- AsyncPostBackErrorEventArgs.cs
- RequestQueue.cs
- EventEntry.cs
- AuthenticationModuleElementCollection.cs
- QueryStack.cs
- InstanceDataCollectionCollection.cs
- Selector.cs
- DesigntimeLicenseContextSerializer.cs
- BufferModeSettings.cs
- cookiecollection.cs
- FileDialog_Vista_Interop.cs
- _FtpDataStream.cs
- XmlCustomFormatter.cs
- UrlPath.cs
- TriggerBase.cs
- AssemblyAttributes.cs
- EdmPropertyAttribute.cs
- XmlNodeList.cs
- XmlSchemaSimpleTypeUnion.cs
- SchemaConstraints.cs
- SmiMetaData.cs
- PackageController.cs
- Visitor.cs
- CqlGenerator.cs
- CaseInsensitiveHashCodeProvider.cs
- DataIdProcessor.cs
- MultipartContentParser.cs
- XsdCachingReader.cs
- SafeProcessHandle.cs
- SudsCommon.cs
- ImageSourceConverter.cs
- CacheVirtualItemsEvent.cs
- SystemIPv6InterfaceProperties.cs
- SelectionEditor.cs
- ContextStaticAttribute.cs
- BoundPropertyEntry.cs
- EntityContainerEmitter.cs
- DesignTimeDataBinding.cs
- SqlBuffer.cs
- XhtmlMobileTextWriter.cs
- Schema.cs
- SynchronizedMessageSource.cs
- ToolStripItemImageRenderEventArgs.cs
- BaseParaClient.cs
- WindowsRebar.cs
- UnauthorizedAccessException.cs
- DbConnectionOptions.cs
- ListItemCollection.cs
- CodeParameterDeclarationExpressionCollection.cs
- ObjectConverter.cs
- PanelDesigner.cs
- SignatureToken.cs
- CustomError.cs
- DataBindingValueUIHandler.cs
- diagnosticsswitches.cs
- CharUnicodeInfo.cs
- ValidatedControlConverter.cs
- MLangCodePageEncoding.cs
- BitmapImage.cs
- BitmapSource.cs
- SettingsPropertyCollection.cs
- Boolean.cs
- MenuAdapter.cs
- LambdaCompiler.Unary.cs