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
- Stream.cs
- ConstraintCollection.cs
- DisplayToken.cs
- WCFServiceClientProxyGenerator.cs
- HtmlShim.cs
- ConstraintEnumerator.cs
- Guid.cs
- TagPrefixAttribute.cs
- BaseParser.cs
- HttpHandlersSection.cs
- WindowsGraphicsCacheManager.cs
- MappingSource.cs
- SQLStringStorage.cs
- ConfigurationHelpers.cs
- SweepDirectionValidation.cs
- FileIOPermission.cs
- MexTcpBindingCollectionElement.cs
- PageCodeDomTreeGenerator.cs
- DBSchemaTable.cs
- PtsHost.cs
- DeclarativeCatalogPart.cs
- BStrWrapper.cs
- TextFindEngine.cs
- ValueSerializerAttribute.cs
- GridViewActionList.cs
- TextServicesManager.cs
- MsmqSecureHashAlgorithm.cs
- ByteAnimationUsingKeyFrames.cs
- FileUpload.cs
- HttpRawResponse.cs
- SqlFunctions.cs
- Floater.cs
- CodeMethodReturnStatement.cs
- Identity.cs
- FtpWebResponse.cs
- RootBrowserWindowProxy.cs
- GetWinFXPath.cs
- RSAPKCS1SignatureDeformatter.cs
- ActivationArguments.cs
- ApplicationDirectory.cs
- HtmlFormWrapper.cs
- ModuleConfigurationInfo.cs
- InstanceCreationEditor.cs
- FtpRequestCacheValidator.cs
- SHA384Managed.cs
- HitTestWithPointDrawingContextWalker.cs
- Message.cs
- _Connection.cs
- DataGridAutoFormatDialog.cs
- OrderByQueryOptionExpression.cs
- CompositeCollectionView.cs
- LocalFileSettingsProvider.cs
- PopupRoot.cs
- XmlConvert.cs
- InternalRelationshipCollection.cs
- PropertyGridCommands.cs
- EastAsianLunisolarCalendar.cs
- TemplatedAdorner.cs
- Panel.cs
- MenuEventArgs.cs
- CriticalHandle.cs
- UpdatableGenericsFeature.cs
- SecurityUtils.cs
- ExceptionValidationRule.cs
- ActivityValidator.cs
- DesignerActionHeaderItem.cs
- PeerObject.cs
- MethodAccessException.cs
- PathSegment.cs
- ContentPlaceHolder.cs
- TreeNodeBindingDepthConverter.cs
- OdbcConnection.cs
- DbInsertCommandTree.cs
- PersonalizationDictionary.cs
- PeerReferralPolicy.cs
- VisualStyleRenderer.cs
- Console.cs
- LookupBindingPropertiesAttribute.cs
- ScrollContentPresenter.cs
- AsymmetricSignatureFormatter.cs
- input.cs
- TableLayoutSettingsTypeConverter.cs
- SvcMapFileLoader.cs
- PhoneCallDesigner.cs
- DrawingDrawingContext.cs
- XmlSchemaAppInfo.cs
- UniqueEventHelper.cs
- ExtensionWindowHeader.cs
- ItemsPresenter.cs
- MergePropertyDescriptor.cs
- ToolStripGrip.cs
- LogExtentCollection.cs
- ImageMapEventArgs.cs
- DesignColumnCollection.cs
- SecurityKeyIdentifier.cs
- ItemsChangedEventArgs.cs
- AnonymousIdentificationModule.cs
- TypeDescriptionProvider.cs
- BlockUIContainer.cs
- XmlSchemaGroup.cs