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
- DiagnosticsConfigurationHandler.cs
- GridViewSelectEventArgs.cs
- BaseInfoTable.cs
- XmlSchemaExternal.cs
- EvidenceBase.cs
- TrustManagerPromptUI.cs
- UnsafeNativeMethods.cs
- DBCSCodePageEncoding.cs
- WindowsTokenRoleProvider.cs
- SubstitutionDesigner.cs
- BaseTemplateParser.cs
- DbConnectionStringCommon.cs
- NameSpaceExtractor.cs
- MDIWindowDialog.cs
- PointAnimationBase.cs
- ReceiveContext.cs
- KnownTypesProvider.cs
- NativeMethods.cs
- ReadOnlyHierarchicalDataSourceView.cs
- OleDbConnection.cs
- CryptoStream.cs
- CodeArrayCreateExpression.cs
- SqlCacheDependencyDatabase.cs
- CryptoConfig.cs
- ListCommandEventArgs.cs
- XPathMultyIterator.cs
- IteratorFilter.cs
- Vector3DCollectionConverter.cs
- CodeEventReferenceExpression.cs
- CompiledQueryCacheKey.cs
- MetadataWorkspace.cs
- BreakRecordTable.cs
- ProgressBarAutomationPeer.cs
- HostedNamedPipeTransportManager.cs
- XmlWhitespace.cs
- ConditionalAttribute.cs
- XmlMembersMapping.cs
- GrammarBuilderPhrase.cs
- XmlReflectionMember.cs
- KeyValueSerializer.cs
- Vector3DAnimationBase.cs
- XmlWriterSettings.cs
- RuleSettingsCollection.cs
- EnumDataContract.cs
- SimpleBitVector32.cs
- ArraySegment.cs
- ButtonBase.cs
- DbConnectionPoolOptions.cs
- LabelDesigner.cs
- WrapPanel.cs
- XamlTreeBuilder.cs
- ObjectSpanRewriter.cs
- StrokeNodeEnumerator.cs
- PassportPrincipal.cs
- DbMetaDataColumnNames.cs
- ThumbButtonInfo.cs
- XmlSchemaComplexContent.cs
- ToolStripOverflowButton.cs
- DirectoryInfo.cs
- ISAPIRuntime.cs
- GridViewRowEventArgs.cs
- FixUpCollection.cs
- InternalException.cs
- CaseInsensitiveComparer.cs
- PathFigure.cs
- Crc32Helper.cs
- ConfigXmlText.cs
- WinEventQueueItem.cs
- TraceUtils.cs
- IPGlobalProperties.cs
- ShapeTypeface.cs
- PathTooLongException.cs
- DefaultMemberAttribute.cs
- AssociationTypeEmitter.cs
- DefaultProxySection.cs
- DataSysAttribute.cs
- DrawingImage.cs
- DesigntimeLicenseContextSerializer.cs
- CustomAttributeSerializer.cs
- VisualBrush.cs
- SoapFault.cs
- TreeView.cs
- Publisher.cs
- DependencyObject.cs
- ErrorsHelper.cs
- XhtmlTextWriter.cs
- AQNBuilder.cs
- Command.cs
- UrlAuthorizationModule.cs
- dbdatarecord.cs
- DataObjectMethodAttribute.cs
- ListenerElementsCollection.cs
- SourceFileBuildProvider.cs
- SelectionProviderWrapper.cs
- GiveFeedbackEventArgs.cs
- InitializationEventAttribute.cs
- WpfKnownType.cs
- OneOf.cs
- SignatureGenerator.cs
- AnnotationComponentChooser.cs