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
- DoWorkEventArgs.cs
- PassportAuthenticationEventArgs.cs
- SapiRecognizer.cs
- CreateUserWizardStep.cs
- RsaElement.cs
- BrowserTree.cs
- DefaultValueConverter.cs
- StaticSiteMapProvider.cs
- MonitoringDescriptionAttribute.cs
- DecoderFallbackWithFailureFlag.cs
- BooleanConverter.cs
- QilChoice.cs
- GridProviderWrapper.cs
- UpdateDelegates.Generated.cs
- Invariant.cs
- SystemWebSectionGroup.cs
- ColorTransform.cs
- FixedDSBuilder.cs
- ComboBox.cs
- StringUtil.cs
- Item.cs
- StaticDataManager.cs
- XsdValidatingReader.cs
- ObjectComplexPropertyMapping.cs
- Vector3DValueSerializer.cs
- SelectorItemAutomationPeer.cs
- AsymmetricKeyExchangeFormatter.cs
- InternalsVisibleToAttribute.cs
- SchemaEntity.cs
- EventLog.cs
- Cursor.cs
- ColorContextHelper.cs
- GenericEnumerator.cs
- WebZone.cs
- MediaContext.cs
- CodeCompiler.cs
- DependencyPropertyHelper.cs
- DrawingBrush.cs
- HybridDictionary.cs
- GridViewDeleteEventArgs.cs
- DataList.cs
- ValidationRule.cs
- GlobalizationAssembly.cs
- ScrollProperties.cs
- LineMetrics.cs
- DataList.cs
- CapabilitiesState.cs
- PenThread.cs
- XmlNamespaceMappingCollection.cs
- EmptyControlCollection.cs
- DataControlImageButton.cs
- HtmlTitle.cs
- ActionFrame.cs
- TextContainer.cs
- DateTimeUtil.cs
- TrustLevelCollection.cs
- PrintDialogException.cs
- NameValuePermission.cs
- CngKeyCreationParameters.cs
- DrawingVisualDrawingContext.cs
- TraceUtils.cs
- ValidationEventArgs.cs
- BuildManager.cs
- ComponentManagerBroker.cs
- OleDbConnectionInternal.cs
- PrtTicket_Base.cs
- SkinIDTypeConverter.cs
- TypedTableHandler.cs
- DataGridViewSelectedCellCollection.cs
- ChameleonKey.cs
- EntityTemplateFactory.cs
- CodeDelegateCreateExpression.cs
- Privilege.cs
- GZipUtils.cs
- ArraySegment.cs
- SafePipeHandle.cs
- ProxyFragment.cs
- SecurityTokenAuthenticator.cs
- FixedSOMTextRun.cs
- RelatedEnd.cs
- DBNull.cs
- SendDesigner.xaml.cs
- SQLRoleProvider.cs
- SoapReflectionImporter.cs
- QueryConverter.cs
- PolyQuadraticBezierSegment.cs
- Icon.cs
- DBCommandBuilder.cs
- Visual.cs
- DataGridViewColumn.cs
- AccessDataSourceView.cs
- SqlBulkCopy.cs
- MissingSatelliteAssemblyException.cs
- Conditional.cs
- AsymmetricAlgorithm.cs
- XmlAttributes.cs
- Zone.cs
- XmlQueryOutput.cs
- ResourceType.cs
- Parallel.cs