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
- Memoizer.cs
- MetafileHeaderWmf.cs
- VerificationAttribute.cs
- DynamicILGenerator.cs
- StoreAnnotationsMap.cs
- InternalControlCollection.cs
- FlowLayoutPanel.cs
- Socket.cs
- EventPrivateKey.cs
- PropertyChangeTracker.cs
- followingsibling.cs
- WindowsSlider.cs
- KoreanCalendar.cs
- UpDownBase.cs
- LayoutEditorPart.cs
- OutputCacheProfile.cs
- SqlInternalConnectionSmi.cs
- Int64AnimationUsingKeyFrames.cs
- OleDbEnumerator.cs
- Debug.cs
- RegexGroupCollection.cs
- DockPatternIdentifiers.cs
- LayoutExceptionEventArgs.cs
- BoolLiteral.cs
- CustomAttributeFormatException.cs
- ProcessHostMapPath.cs
- ScriptResourceHandler.cs
- CompositionAdorner.cs
- XmlSchemaSimpleContent.cs
- RuleRef.cs
- _NegotiateClient.cs
- RequestQueryProcessor.cs
- Deflater.cs
- JsonMessageEncoderFactory.cs
- ColumnWidthChangedEvent.cs
- DurationConverter.cs
- HtmlTitle.cs
- Int32Rect.cs
- X509CertificateValidator.cs
- EventEntry.cs
- SiteIdentityPermission.cs
- EncryptedXml.cs
- NullableDoubleSumAggregationOperator.cs
- BulletedListEventArgs.cs
- BaseTemplateBuildProvider.cs
- SortQuery.cs
- TableLayoutStyleCollection.cs
- VisualProxy.cs
- UnaryOperationBinder.cs
- CheckBoxList.cs
- DesignSurfaceServiceContainer.cs
- DatatypeImplementation.cs
- SqlRecordBuffer.cs
- HtmlLink.cs
- OleDbRowUpdatedEvent.cs
- ColorConverter.cs
- EdmScalarPropertyAttribute.cs
- RemotingConfiguration.cs
- AnnotationResourceCollection.cs
- PersonalizableAttribute.cs
- FileLogRecordEnumerator.cs
- Message.cs
- SecUtil.cs
- Logging.cs
- CorrelationService.cs
- WebServiceParameterData.cs
- BaseDataListPage.cs
- Environment.cs
- HttpProtocolReflector.cs
- SqlUDTStorage.cs
- BridgeDataRecord.cs
- StateRuntime.cs
- Cursors.cs
- ResolveRequestResponseAsyncResult.cs
- ExceptionHandlers.cs
- TextCompositionEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- ItemDragEvent.cs
- MethodSet.cs
- SystemIPGlobalStatistics.cs
- TimeStampChecker.cs
- DispatcherTimer.cs
- JapaneseLunisolarCalendar.cs
- ProcessManager.cs
- ProviderUtil.cs
- IChannel.cs
- ServiceHostingEnvironmentSection.cs
- ClientCultureInfo.cs
- ContractNamespaceAttribute.cs
- BitmapMetadataEnumerator.cs
- DrawingVisualDrawingContext.cs
- SchemaElement.cs
- formatter.cs
- Window.cs
- InternalRelationshipCollection.cs
- SettingsContext.cs
- TreeViewItemAutomationPeer.cs
- linebase.cs
- ImageListImageEditor.cs
- ListItemCollection.cs