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
- ThreadNeutralSemaphore.cs
- StateChangeEvent.cs
- TrustManagerPromptUI.cs
- DBNull.cs
- WindowsImpersonationContext.cs
- TreeNodeStyleCollection.cs
- InternalBufferManager.cs
- BitmapFrameEncode.cs
- ByeMessage11.cs
- DBConcurrencyException.cs
- DecoderNLS.cs
- XmlSortKey.cs
- TreeViewItem.cs
- UIAgentInitializationException.cs
- NeutralResourcesLanguageAttribute.cs
- NetworkCredential.cs
- RequiredAttributeAttribute.cs
- StrongTypingException.cs
- FileAuthorizationModule.cs
- EventLogTraceListener.cs
- DiscoveryDocumentReference.cs
- FixUp.cs
- SQLBytes.cs
- ViewUtilities.cs
- PngBitmapEncoder.cs
- ZipIOExtraFieldElement.cs
- PeerSecurityHelpers.cs
- NeutralResourcesLanguageAttribute.cs
- ExitEventArgs.cs
- InputScopeAttribute.cs
- validation.cs
- ChooseAction.cs
- ListenerUnsafeNativeMethods.cs
- CheckBoxRenderer.cs
- ExtendedTransformFactory.cs
- SqlUserDefinedAggregateAttribute.cs
- SeverityFilter.cs
- FlowDocumentPageViewerAutomationPeer.cs
- HttpListenerRequest.cs
- Exceptions.cs
- ReferencedAssembly.cs
- Processor.cs
- ProtectedConfigurationProviderCollection.cs
- CompilerGlobalScopeAttribute.cs
- ArglessEventHandlerProxy.cs
- XPathItem.cs
- DataGridTableStyleMappingNameEditor.cs
- DataGridViewTopLeftHeaderCell.cs
- BinaryParser.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- FrameworkTemplate.cs
- RegistryPermission.cs
- ListViewItem.cs
- SectionVisual.cs
- UserPersonalizationStateInfo.cs
- DefaultValueTypeConverter.cs
- JsonQNameDataContract.cs
- RelationshipConstraintValidator.cs
- RowUpdatedEventArgs.cs
- HttpHandler.cs
- XmlRootAttribute.cs
- CacheAxisQuery.cs
- CompositeActivityValidator.cs
- AmbientLight.cs
- ServiceNameCollection.cs
- ErrorWebPart.cs
- MenuStrip.cs
- DataGridViewColumnConverter.cs
- COM2Enum.cs
- SoapElementAttribute.cs
- TransformDescriptor.cs
- WebDescriptionAttribute.cs
- AppSecurityManager.cs
- FontStretchConverter.cs
- ConfigurationPermission.cs
- CustomAssemblyResolver.cs
- ThemeDictionaryExtension.cs
- SettingsPropertyWrongTypeException.cs
- SendParametersContent.cs
- ControlCollection.cs
- BitStream.cs
- EditorZoneDesigner.cs
- WorkflowApplicationAbortedEventArgs.cs
- SerialReceived.cs
- PersonalizationProvider.cs
- XmlSerializerNamespaces.cs
- ProfileManager.cs
- FontClient.cs
- OperationResponse.cs
- WebPartDisplayMode.cs
- RelatedView.cs
- ItemMap.cs
- OrderingExpression.cs
- StreamHelper.cs
- AssertSection.cs
- TextEffect.cs
- Window.cs
- AmbientProperties.cs
- LinkArea.cs
- WindowsScrollBar.cs