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
- ResourceSet.cs
- TypeTypeConverter.cs
- StringHelper.cs
- DocumentViewer.cs
- DecoderExceptionFallback.cs
- ImageCodecInfo.cs
- ReflectionTypeLoadException.cs
- EncryptedPackage.cs
- ExpressionBuilderContext.cs
- CloudCollection.cs
- FloatUtil.cs
- CompositeFontInfo.cs
- WebMessageEncoderFactory.cs
- EventHandlers.cs
- ExpressionTable.cs
- DataGridView.cs
- RequestChannelBinder.cs
- SqlRewriteScalarSubqueries.cs
- GenericNameHandler.cs
- OrderedEnumerableRowCollection.cs
- ServerValidateEventArgs.cs
- PageVisual.cs
- EdmComplexTypeAttribute.cs
- TableAdapterManagerMethodGenerator.cs
- OutKeywords.cs
- GridViewDeletedEventArgs.cs
- PerformanceCounterPermissionAttribute.cs
- FormViewDeletedEventArgs.cs
- HttpRequestMessageProperty.cs
- StylusShape.cs
- SqlCacheDependencyDatabase.cs
- GenericIdentity.cs
- Stylus.cs
- TextDecorationLocationValidation.cs
- updateconfighost.cs
- TableRowCollection.cs
- DecoderExceptionFallback.cs
- loginstatus.cs
- ConsumerConnectionPointCollection.cs
- QilValidationVisitor.cs
- EmbeddedMailObject.cs
- InitialServerConnectionReader.cs
- Attributes.cs
- CallSiteHelpers.cs
- SystemNetworkInterface.cs
- QualifierSet.cs
- MemberDomainMap.cs
- TextSelectionHelper.cs
- MatrixAnimationUsingKeyFrames.cs
- SQLInt64.cs
- SimpleHandlerBuildProvider.cs
- EDesignUtil.cs
- Label.cs
- MatrixAnimationBase.cs
- CookieParameter.cs
- ServiceReference.cs
- ListContractAdapter.cs
- UIElement3DAutomationPeer.cs
- WebPartExportVerb.cs
- RandomNumberGenerator.cs
- LowerCaseStringConverter.cs
- InstanceDataCollection.cs
- AuthStoreRoleProvider.cs
- HMACRIPEMD160.cs
- Stackframe.cs
- FilterQuery.cs
- Menu.cs
- ProtocolsSection.cs
- BaseTemplateParser.cs
- TypePropertyEditor.cs
- ServiceDescriptionImporter.cs
- DataControlField.cs
- ExpressionsCollectionConverter.cs
- InvokeWebService.cs
- PageCache.cs
- CopyNamespacesAction.cs
- XmlCharType.cs
- Listbox.cs
- ExcludeFromCodeCoverageAttribute.cs
- TCPClient.cs
- GridViewRowPresenter.cs
- SqlDataSourceCache.cs
- SplashScreen.cs
- ArgIterator.cs
- WebPartActionVerb.cs
- XmlSchemaInclude.cs
- ListItem.cs
- MembershipValidatePasswordEventArgs.cs
- ThrowHelper.cs
- RecognizerBase.cs
- EncryptedXml.cs
- TextServicesLoader.cs
- TraceSection.cs
- OperatorExpressions.cs
- BitmapEffectDrawing.cs
- InstanceStore.cs
- SynchronizingStream.cs
- LineBreakRecord.cs
- GraphicsPath.cs
- ConstraintStruct.cs