Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / ToolStripDropDownItemDesigner.cs / 1 / ToolStripDropDownItemDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.Design.ToolStripDropDownItemDesigner..ctor()")] namespace System.Windows.Forms.Design { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Windows.Forms; using System.Drawing; ////// Designer for ToolStripDropDownItems. This is here so only the /// dropdown items get the "Edit Items..." verb. /// internal class ToolStripDropDownItemDesigner : ToolStripItemDesigner { ////// Initialize the item. /// public override void Initialize(IComponent component) { base.Initialize (component); } ////// The ToolStripItems are the associated components. /// We want those to come with in any cut, copy opreations. /// public override System.Collections.ICollection AssociatedComponents { get { ToolStripDropDownItem item = Component as ToolStripDropDownItem; if (item != null && item.DropDown.IsAutoGenerated) { return item.DropDownItems; } return base.AssociatedComponents; } } } } // 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
- FileChangesMonitor.cs
- ToolZone.cs
- Paragraph.cs
- ProfileSettingsCollection.cs
- cryptoapiTransform.cs
- LineServicesCallbacks.cs
- CqlLexer.cs
- Animatable.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DbModificationCommandTree.cs
- FontFamily.cs
- AnnotationAuthorChangedEventArgs.cs
- shaper.cs
- MemberDomainMap.cs
- XmlReflectionMember.cs
- ApplicationServiceHelper.cs
- ProbeMatches11.cs
- hwndwrapper.cs
- SqlClientMetaDataCollectionNames.cs
- PersonalizableTypeEntry.cs
- DetailsViewUpdateEventArgs.cs
- AnnotationComponentChooser.cs
- Imaging.cs
- ScrollBar.cs
- UMPAttributes.cs
- SqlDependencyUtils.cs
- OneWayBindingElement.cs
- PackageStore.cs
- Preprocessor.cs
- GestureRecognitionResult.cs
- TabletDevice.cs
- FilterableAttribute.cs
- InvalidCommandTreeException.cs
- FullTextBreakpoint.cs
- WhitespaceRuleReader.cs
- ListenerConnectionDemuxer.cs
- CodeStatementCollection.cs
- BitHelper.cs
- SizeConverter.cs
- TextBoxLine.cs
- DataError.cs
- EventManager.cs
- ReadOnlyKeyedCollection.cs
- NamespaceEmitter.cs
- SegmentInfo.cs
- EnvelopedSignatureTransform.cs
- PopupRoot.cs
- PageBuildProvider.cs
- WorkflowWebHostingModule.cs
- Trace.cs
- EditorAttribute.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- IntegerValidator.cs
- TemplateControlBuildProvider.cs
- DataGridColumn.cs
- CodeParameterDeclarationExpression.cs
- CaretElement.cs
- ConfigurationManagerInternal.cs
- LockCookie.cs
- SHA256Cng.cs
- PropertyEmitter.cs
- FormViewDeletedEventArgs.cs
- SiteMapNode.cs
- RequestCachingSection.cs
- GenericWebPart.cs
- BamlResourceSerializer.cs
- WebPartVerbCollection.cs
- DataTablePropertyDescriptor.cs
- OdbcCommandBuilder.cs
- AttributeCollection.cs
- WindowsPrincipal.cs
- CacheAxisQuery.cs
- SByteStorage.cs
- SettingsPropertyWrongTypeException.cs
- ModifierKeysValueSerializer.cs
- HtmlCommandAdapter.cs
- EncryptedKey.cs
- CngProvider.cs
- PTManager.cs
- EventRecordWrittenEventArgs.cs
- Span.cs
- ToolboxItemAttribute.cs
- ErrorEventArgs.cs
- ToolStripContentPanel.cs
- EUCJPEncoding.cs
- CommonDialog.cs
- BitmapEditor.cs
- DBDataPermissionAttribute.cs
- dataprotectionpermission.cs
- WeakReference.cs
- ObjectListSelectEventArgs.cs
- TreeView.cs
- PeerUnsafeNativeCryptMethods.cs
- SecurityContext.cs
- ServiceModelStringsVersion1.cs
- XmlAttributeProperties.cs
- log.cs
- COM2ColorConverter.cs
- TextDecorationCollectionConverter.cs
- CompleteWizardStep.cs