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
- D3DImage.cs
- AttachedProperty.cs
- Graphics.cs
- RoutedEventHandlerInfo.cs
- DescriptionAttribute.cs
- sitestring.cs
- RtfNavigator.cs
- SQLBinaryStorage.cs
- DayRenderEvent.cs
- ModelItemExtensions.cs
- AutomationElementCollection.cs
- SoapSchemaImporter.cs
- PlanCompilerUtil.cs
- XmlCodeExporter.cs
- BitVec.cs
- DrawingAttributeSerializer.cs
- RunInstallerAttribute.cs
- XmlSchemaAny.cs
- ActivationArguments.cs
- Point4DValueSerializer.cs
- CipherData.cs
- CacheVirtualItemsEvent.cs
- WithStatement.cs
- FixedSOMTable.cs
- TransformerTypeCollection.cs
- GeneratedCodeAttribute.cs
- CuspData.cs
- DeviceSpecific.cs
- GroupBox.cs
- DispatchWrapper.cs
- UrlAuthFailedErrorFormatter.cs
- EdgeModeValidation.cs
- ArgumentOutOfRangeException.cs
- BindingValueChangedEventArgs.cs
- HtmlInputSubmit.cs
- WorkItem.cs
- SocketException.cs
- ColorComboBox.cs
- ComponentResourceKeyConverter.cs
- TypeDescriptionProviderAttribute.cs
- Codec.cs
- XmlUrlResolver.cs
- SafeHandles.cs
- SafeProcessHandle.cs
- PropertyChangingEventArgs.cs
- DataGridViewComboBoxEditingControl.cs
- CollectionViewSource.cs
- Rijndael.cs
- WpfGeneratedKnownTypes.cs
- CaseStatement.cs
- OpenTypeMethods.cs
- EncoderParameters.cs
- ScriptingScriptResourceHandlerSection.cs
- SecurityState.cs
- ColumnWidthChangedEvent.cs
- FixedElement.cs
- DbConnectionFactory.cs
- SByte.cs
- SspiSafeHandles.cs
- ProfileInfo.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- XmlILStorageConverter.cs
- NetworkStream.cs
- EndOfStreamException.cs
- ColorContext.cs
- TextContainer.cs
- WasAdminWrapper.cs
- DataGridViewCellConverter.cs
- EffectiveValueEntry.cs
- ManipulationDeltaEventArgs.cs
- WorkflowTraceTransfer.cs
- SizeAnimationUsingKeyFrames.cs
- PageCodeDomTreeGenerator.cs
- ToolStripRenderer.cs
- EntityDataSourceDesigner.cs
- _Connection.cs
- EngineSiteSapi.cs
- CorruptingExceptionCommon.cs
- MenuStrip.cs
- RIPEMD160Managed.cs
- SystemIcons.cs
- WarningException.cs
- EnumType.cs
- OTFRasterizer.cs
- DataGridLinkButton.cs
- ContentTextAutomationPeer.cs
- CircleEase.cs
- ConstructorNeedsTagAttribute.cs
- StringWriter.cs
- SQLInt32.cs
- CustomTypeDescriptor.cs
- ProcessThreadCollection.cs
- ControlCollection.cs
- MultiView.cs
- MarshalDirectiveException.cs
- ErrorsHelper.cs
- UserControlParser.cs
- ComEventsSink.cs
- UnsafeNativeMethods.cs
- CompModSwitches.cs