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
- CollectionViewGroup.cs
- RegistryExceptionHelper.cs
- SqlCaseSimplifier.cs
- DatasetMethodGenerator.cs
- LiteralControl.cs
- XmlnsPrefixAttribute.cs
- XmlFormatWriterGenerator.cs
- SqlDataSourceConfigureFilterForm.cs
- DataGridTextBoxColumn.cs
- MustUnderstandSoapException.cs
- ValueChangedEventManager.cs
- ArrayWithOffset.cs
- Lookup.cs
- Identity.cs
- CodeDirectionExpression.cs
- AccessViolationException.cs
- LoadedEvent.cs
- TextShapeableCharacters.cs
- HtmlWindow.cs
- QuadTree.cs
- FileDialogCustomPlace.cs
- CodeTypeConstructor.cs
- DependencyPropertyDescriptor.cs
- FileDetails.cs
- DrawingState.cs
- PenContexts.cs
- _ProxyRegBlob.cs
- Form.cs
- OneOfScalarConst.cs
- EventLogInternal.cs
- WebPartVerb.cs
- Workspace.cs
- JapaneseLunisolarCalendar.cs
- HMACRIPEMD160.cs
- SystemParameters.cs
- CalendarSelectionChangedEventArgs.cs
- TableHeaderCell.cs
- BamlCollectionHolder.cs
- iisPickupDirectory.cs
- GridViewColumn.cs
- WebPartTracker.cs
- AsymmetricAlgorithm.cs
- DateTimeValueSerializerContext.cs
- CallTemplateAction.cs
- MailWebEventProvider.cs
- KeyedCollection.cs
- InstancePersistenceException.cs
- AppDomain.cs
- ShaperBuffers.cs
- ObfuscateAssemblyAttribute.cs
- CheckBox.cs
- ZipIOExtraFieldPaddingElement.cs
- TemplateParser.cs
- ExtendedPropertyDescriptor.cs
- DefaultHttpHandler.cs
- HelpProvider.cs
- FileVersion.cs
- WebEventTraceProvider.cs
- SchemaInfo.cs
- Geometry3D.cs
- Stylus.cs
- UDPClient.cs
- ObjectResult.cs
- RecognizerStateChangedEventArgs.cs
- IBuiltInEvidence.cs
- CommonDialog.cs
- ReaderContextStackData.cs
- ExecutionContext.cs
- WebConfigurationFileMap.cs
- HexParser.cs
- SID.cs
- XdrBuilder.cs
- RelationshipEnd.cs
- ConfigurationSectionGroup.cs
- ThreadAbortException.cs
- DesignerObjectListAdapter.cs
- ResourceReader.cs
- TranslateTransform3D.cs
- PerformanceCountersElement.cs
- WinOEToolBoxItem.cs
- XmlCharacterData.cs
- DocumentViewerAutomationPeer.cs
- BitmapEffectInputConnector.cs
- ImageField.cs
- PathGeometry.cs
- _PooledStream.cs
- ClientConfigurationHost.cs
- BaseResourcesBuildProvider.cs
- ProtectedProviderSettings.cs
- OdbcErrorCollection.cs
- DecimalFormatter.cs
- CustomAttributeBuilder.cs
- BuildProvider.cs
- MimeXmlReflector.cs
- DelegatingConfigHost.cs
- UniformGrid.cs
- SkinIDTypeConverter.cs
- SmtpFailedRecipientsException.cs
- ThousandthOfEmRealDoubles.cs
- DataColumnChangeEvent.cs