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
- RectAnimationUsingKeyFrames.cs
- SerializationAttributes.cs
- AstNode.cs
- Vector3D.cs
- RegexGroup.cs
- Int32Animation.cs
- Expander.cs
- WaitHandle.cs
- OdbcError.cs
- ProgressBarAutomationPeer.cs
- FileUtil.cs
- mactripleDES.cs
- EventListenerClientSide.cs
- PeerCollaboration.cs
- DistinctQueryOperator.cs
- SchemaHelper.cs
- InputScopeManager.cs
- Claim.cs
- SqlClientMetaDataCollectionNames.cs
- _AuthenticationState.cs
- CategoryGridEntry.cs
- ColumnWidthChangingEvent.cs
- AnimationException.cs
- CommonXSendMessage.cs
- Ipv6Element.cs
- PropertyTabChangedEvent.cs
- HotSpotCollection.cs
- RenderTargetBitmap.cs
- GatewayIPAddressInformationCollection.cs
- dtdvalidator.cs
- XmlValidatingReader.cs
- WebPartConnectionCollection.cs
- AutomationElementIdentifiers.cs
- ObjectDataSourceMethodEventArgs.cs
- CurrentChangedEventManager.cs
- CompilerCollection.cs
- Validator.cs
- NamespaceImport.cs
- SafeArrayRankMismatchException.cs
- Wildcard.cs
- UnsettableComboBox.cs
- WorkflowWebHostingModule.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- MediaPlayer.cs
- SQLInt64Storage.cs
- UnionCqlBlock.cs
- ObfuscateAssemblyAttribute.cs
- CodeIdentifiers.cs
- SafeRightsManagementSessionHandle.cs
- ExpandedProjectionNode.cs
- LogRecordSequence.cs
- MetadataCacheItem.cs
- ConfigurationElementProperty.cs
- TraceHandlerErrorFormatter.cs
- HtmlInputControl.cs
- ButtonField.cs
- WebPartConnectionsCancelEventArgs.cs
- OciEnlistContext.cs
- Mutex.cs
- GridViewAutomationPeer.cs
- TextEndOfLine.cs
- DataGridBoundColumn.cs
- SingleAnimationUsingKeyFrames.cs
- StreamInfo.cs
- PersianCalendar.cs
- WebRequest.cs
- UrlAuthorizationModule.cs
- XmlDictionaryString.cs
- LifetimeServices.cs
- MetadataArtifactLoaderFile.cs
- TraceProvider.cs
- Triplet.cs
- Command.cs
- SqlTriggerAttribute.cs
- NavigationEventArgs.cs
- DragDeltaEventArgs.cs
- PreviewPageInfo.cs
- FormsAuthentication.cs
- InitializerFacet.cs
- ECDsaCng.cs
- PageParserFilter.cs
- WindowsStreamSecurityUpgradeProvider.cs
- SafeNativeMethods.cs
- BinHexEncoding.cs
- DbTypeMap.cs
- HTMLTextWriter.cs
- QfeChecker.cs
- Operand.cs
- BindUriHelper.cs
- StyleXamlParser.cs
- StreamWithDictionary.cs
- LogLogRecordHeader.cs
- CompositeKey.cs
- LeftCellWrapper.cs
- _FtpControlStream.cs
- BaseAppDomainProtocolHandler.cs
- LongValidatorAttribute.cs
- PageContentAsyncResult.cs
- UserThread.cs
- Opcode.cs