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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyGridEditorPart.cs
- unsafenativemethodsother.cs
- HttpServerProtocol.cs
- ControlIdConverter.cs
- NavigationPropertyEmitter.cs
- CultureTableRecord.cs
- SafeCryptoHandles.cs
- Crypto.cs
- DataGridBoolColumn.cs
- UnmanagedMemoryStreamWrapper.cs
- GenericRootAutomationPeer.cs
- SelectorAutomationPeer.cs
- OpenFileDialog.cs
- SByte.cs
- SmtpNetworkElement.cs
- PenThread.cs
- DataGridCaption.cs
- GlyphCache.cs
- _SSPIWrapper.cs
- OleDbFactory.cs
- PingOptions.cs
- AutomationPatternInfo.cs
- DefinitionProperties.cs
- LogPolicy.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- PersonalizationState.cs
- XpsSerializationManager.cs
- ValidatingCollection.cs
- WebBrowser.cs
- StrongName.cs
- WorkflowDefinitionDispenser.cs
- HostExecutionContextManager.cs
- VectorCollection.cs
- HttpHandlerAction.cs
- DataBoundLiteralControl.cs
- Assembly.cs
- XmlReflectionMember.cs
- TextDecorationLocationValidation.cs
- GridViewCancelEditEventArgs.cs
- ComboBox.cs
- TreeNodeConverter.cs
- BaseResourcesBuildProvider.cs
- Site.cs
- ColumnBinding.cs
- BamlRecordWriter.cs
- XmlValidatingReader.cs
- EventMappingSettingsCollection.cs
- MeshGeometry3D.cs
- InstanceHandleConflictException.cs
- EventsTab.cs
- TableParaClient.cs
- RequestStatusBarUpdateEventArgs.cs
- TypeDescriptorContext.cs
- SponsorHelper.cs
- XmlSchemaObjectCollection.cs
- ControlValuePropertyAttribute.cs
- ToolStripRenderEventArgs.cs
- FactoryId.cs
- HMACSHA256.cs
- ObjectNotFoundException.cs
- CallSiteHelpers.cs
- D3DImage.cs
- EnumBuilder.cs
- NegotiationTokenProvider.cs
- GenerateTemporaryTargetAssembly.cs
- XpsViewerException.cs
- SafeCryptContextHandle.cs
- StandardTransformFactory.cs
- XhtmlBasicLabelAdapter.cs
- MsmqIntegrationMessagePool.cs
- Rect3DConverter.cs
- NodeFunctions.cs
- ValidationSummary.cs
- ConvertTextFrag.cs
- LinkConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- TrimSurroundingWhitespaceAttribute.cs
- SafeCloseHandleCritical.cs
- WsdlHelpGeneratorElement.cs
- SqlDataSourceCommandParser.cs
- RenderingBiasValidation.cs
- FilteredAttributeCollection.cs
- Wildcard.cs
- SoapFormatterSinks.cs
- ApplicationFileParser.cs
- RSAOAEPKeyExchangeFormatter.cs
- XmlSerializationReader.cs
- SiteMapProvider.cs
- DnsPermission.cs
- Win32Native.cs
- RadioButton.cs
- BooleanFunctions.cs
- ChtmlPageAdapter.cs
- Pen.cs
- Listen.cs
- HttpFileCollection.cs
- QueryCursorEventArgs.cs
- IFlowDocumentViewer.cs
- DataSourceCache.cs
- HttpListenerPrefixCollection.cs