Code:
/ FX-1434 / FX-1434 / 1.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
- ListViewItemCollectionEditor.cs
- HttpCapabilitiesBase.cs
- IsolatedStoragePermission.cs
- EnvelopedSignatureTransform.cs
- QuarticEase.cs
- JapaneseLunisolarCalendar.cs
- X509Chain.cs
- ReferenceConverter.cs
- InstallerTypeAttribute.cs
- XPathExpr.cs
- BeginEvent.cs
- Pen.cs
- SchemaCompiler.cs
- DataGridViewButtonCell.cs
- DelegateSerializationHolder.cs
- ParserExtension.cs
- DefaultBinder.cs
- Native.cs
- login.cs
- PagesChangedEventArgs.cs
- SigningCredentials.cs
- ExceptionValidationRule.cs
- FaultBookmark.cs
- BitmapSource.cs
- EntityCommand.cs
- JpegBitmapEncoder.cs
- DriveInfo.cs
- RenderDataDrawingContext.cs
- GridViewColumn.cs
- DBCSCodePageEncoding.cs
- PageClientProxyGenerator.cs
- SystemPens.cs
- AppSettingsSection.cs
- ContextMenuStripGroup.cs
- TypedTableBase.cs
- HMAC.cs
- ClientTargetSection.cs
- BitmapImage.cs
- XmlSchemaAttribute.cs
- CompilationUtil.cs
- DragCompletedEventArgs.cs
- ToolboxItemFilterAttribute.cs
- QilGeneratorEnv.cs
- PackageStore.cs
- CompoundFileIOPermission.cs
- X509Certificate2Collection.cs
- DeviceContext2.cs
- FieldNameLookup.cs
- WinCategoryAttribute.cs
- TreeViewCancelEvent.cs
- AnimatedTypeHelpers.cs
- CLRBindingWorker.cs
- XPathChildIterator.cs
- ArrowControl.xaml.cs
- WindowsAuthenticationEventArgs.cs
- FileEnumerator.cs
- SettingsPropertyValueCollection.cs
- UpdateException.cs
- SecureEnvironment.cs
- ThrowHelper.cs
- MenuItemStyleCollection.cs
- LinqDataSourceSelectEventArgs.cs
- InvalidWorkflowException.cs
- Screen.cs
- DataGridViewButtonCell.cs
- Blend.cs
- DeferredTextReference.cs
- MetadataItemSerializer.cs
- LoginUtil.cs
- SafeArrayTypeMismatchException.cs
- AppLevelCompilationSectionCache.cs
- SortKey.cs
- ConfigXmlAttribute.cs
- ComplusEndpointConfigContainer.cs
- AttributeQuery.cs
- SqlGenericUtil.cs
- AccessedThroughPropertyAttribute.cs
- X509RawDataKeyIdentifierClause.cs
- AudioFormatConverter.cs
- DictionaryContent.cs
- Translator.cs
- NonSerializedAttribute.cs
- SqlBulkCopyColumnMappingCollection.cs
- IdentityHolder.cs
- MarshalDirectiveException.cs
- BasicExpandProvider.cs
- SemanticValue.cs
- InfoCardTraceRecord.cs
- DrawTreeNodeEventArgs.cs
- DiagnosticTrace.cs
- SafeTimerHandle.cs
- ToolBar.cs
- AccessDataSource.cs
- TreeViewHitTestInfo.cs
- TreeNodeCollection.cs
- CheckBoxField.cs
- ExtensibleClassFactory.cs
- WebMethodAttribute.cs
- ConditionCollection.cs
- StylusCaptureWithinProperty.cs