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
- DataGridViewBindingCompleteEventArgs.cs
- BinaryCommonClasses.cs
- RecognizedWordUnit.cs
- TrackingServices.cs
- MethodBody.cs
- FontResourceCache.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- VBCodeProvider.cs
- DbConnectionPoolOptions.cs
- Console.cs
- Parallel.cs
- WinEventTracker.cs
- TitleStyle.cs
- ComponentDispatcherThread.cs
- CryptoApi.cs
- EditorZoneBase.cs
- SimpleBitVector32.cs
- OleDbSchemaGuid.cs
- _SpnDictionary.cs
- TimeSpanStorage.cs
- XPathNavigatorReader.cs
- DispatcherEventArgs.cs
- URLAttribute.cs
- RNGCryptoServiceProvider.cs
- LineGeometry.cs
- querybuilder.cs
- DataGridComponentEditor.cs
- ArgumentsParser.cs
- TableItemStyle.cs
- GlyphRunDrawing.cs
- ColumnResizeUndoUnit.cs
- PageStatePersister.cs
- AspProxy.cs
- PluralizationService.cs
- MultipartIdentifier.cs
- TextBoxAutomationPeer.cs
- AsyncOperation.cs
- DataServiceRequest.cs
- StructuralCache.cs
- CollectionViewProxy.cs
- XDRSchema.cs
- BlurBitmapEffect.cs
- TraceInternal.cs
- ExpressionEditor.cs
- SerializerDescriptor.cs
- RefExpr.cs
- CryptoStream.cs
- OutOfProcStateClientManager.cs
- NavigationPropertyEmitter.cs
- Base64Encoder.cs
- HttpWrapper.cs
- FormsAuthenticationUser.cs
- XmlSchemaInfo.cs
- SystemBrushes.cs
- SqlServices.cs
- SharedPersonalizationStateInfo.cs
- FrameworkTextComposition.cs
- QuaternionAnimation.cs
- FigureParagraph.cs
- BevelBitmapEffect.cs
- ConnectionPoint.cs
- ProviderCollection.cs
- OrderByExpression.cs
- TextParentUndoUnit.cs
- UIElement.cs
- GenericTypeParameterBuilder.cs
- PersonalizablePropertyEntry.cs
- X509Chain.cs
- Condition.cs
- Int64Storage.cs
- ColumnBinding.cs
- FrameworkTextComposition.cs
- Trace.cs
- RC2.cs
- DateBoldEvent.cs
- BrushValueSerializer.cs
- SqlBooleanMismatchVisitor.cs
- ExpressionVisitorHelpers.cs
- MessageBox.cs
- VScrollBar.cs
- DisableDpiAwarenessAttribute.cs
- MenuBase.cs
- ZipIOFileItemStream.cs
- DataContractFormatAttribute.cs
- ConversionContext.cs
- ActivityDesignerAccessibleObject.cs
- Stopwatch.cs
- DesignTimeTemplateParser.cs
- QuaternionRotation3D.cs
- GreenMethods.cs
- TreeViewDataItemAutomationPeer.cs
- DataObjectPastingEventArgs.cs
- COM2ExtendedUITypeEditor.cs
- EndpointInfoCollection.cs
- EtwTrace.cs
- XmlSignatureManifest.cs
- CircleHotSpot.cs
- SecureConversationDriver.cs
- Monitor.cs
- ResourcesGenerator.cs