Code:
/ FX-1434 / FX-1434 / 1.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
- ValidationResult.cs
- TripleDES.cs
- ObjectTag.cs
- XmlDesigner.cs
- _ConnectOverlappedAsyncResult.cs
- SpecialNameAttribute.cs
- TemplatePropertyEntry.cs
- TransactionalPackage.cs
- BinarySerializer.cs
- Message.cs
- SingleObjectCollection.cs
- DispatchWrapper.cs
- Switch.cs
- Compiler.cs
- PixelShader.cs
- HtmlControlPersistable.cs
- Axis.cs
- ModifierKeysValueSerializer.cs
- WizardPanel.cs
- SimpleLine.cs
- LowerCaseStringConverter.cs
- ModuleConfigurationInfo.cs
- WebPartMenu.cs
- SqlDataSourceConnectionPanel.cs
- ListChangedEventArgs.cs
- ModifierKeysConverter.cs
- Point3D.cs
- SiteMapHierarchicalDataSourceView.cs
- ProxyWebPart.cs
- Int32.cs
- FixedSOMTable.cs
- SolidColorBrush.cs
- OlePropertyStructs.cs
- VectorKeyFrameCollection.cs
- DataGridViewAdvancedBorderStyle.cs
- CompositeDispatchFormatter.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SqlDataSourceQuery.cs
- dtdvalidator.cs
- EventData.cs
- SpellerError.cs
- SelectorAutomationPeer.cs
- GridView.cs
- DashStyles.cs
- HandleRef.cs
- EntityContainer.cs
- RoleService.cs
- TraversalRequest.cs
- ReadOnlyDataSource.cs
- DispatcherOperation.cs
- SymbolPair.cs
- Transactions.cs
- NGCSerializer.cs
- ContextMenu.cs
- Assembly.cs
- WindowsContainer.cs
- EntityTypeEmitter.cs
- QilStrConcatenator.cs
- WebPartConnectionsConfigureVerb.cs
- propertytag.cs
- StorageEndPropertyMapping.cs
- GenerateTemporaryTargetAssembly.cs
- Visitor.cs
- LineServices.cs
- StructuredTypeEmitter.cs
- TreeViewAutomationPeer.cs
- RegexBoyerMoore.cs
- Listen.cs
- XamlBrushSerializer.cs
- Crc32Helper.cs
- MenuBindingsEditor.cs
- InternalCache.cs
- ImpersonationContext.cs
- AdornerDecorator.cs
- UriParserTemplates.cs
- ETagAttribute.cs
- DataSet.cs
- Win32.cs
- SystemException.cs
- ImageAnimator.cs
- AjaxFrameworkAssemblyAttribute.cs
- ObjectKeyFrameCollection.cs
- TimersDescriptionAttribute.cs
- OleDbCommand.cs
- DefaultSettingsSection.cs
- ComboBox.cs
- SqlUdtInfo.cs
- Helpers.cs
- ColumnClickEvent.cs
- xdrvalidator.cs
- StylusCollection.cs
- TextDecorationUnitValidation.cs
- DoubleConverter.cs
- ActivityExecutionContextCollection.cs
- NonParentingControl.cs
- DynamicActivityXamlReader.cs
- IndexingContentUnit.cs
- DbInsertCommandTree.cs
- DecimalAnimationUsingKeyFrames.cs
- bindurihelper.cs