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
- ImpersonateTokenRef.cs
- smtppermission.cs
- KeySplineConverter.cs
- BookmarkUndoUnit.cs
- IdentityValidationException.cs
- TraceSwitch.cs
- LifetimeManager.cs
- IisTraceWebEventProvider.cs
- TcpAppDomainProtocolHandler.cs
- HttpDictionary.cs
- PointConverter.cs
- LostFocusEventManager.cs
- QueryOperationResponseOfT.cs
- ColumnResult.cs
- ScaleTransform.cs
- RevocationPoint.cs
- EnumMember.cs
- OrderedHashRepartitionStream.cs
- LabelAutomationPeer.cs
- ScrollProviderWrapper.cs
- CollectionContainer.cs
- ProcessModuleCollection.cs
- SerialPort.cs
- ClientScriptItemCollection.cs
- SqlNodeAnnotation.cs
- DataControlLinkButton.cs
- GCHandleCookieTable.cs
- EventLogTraceListener.cs
- GZipUtils.cs
- GridViewRowPresenterBase.cs
- LocationInfo.cs
- Regex.cs
- WindowsUpDown.cs
- AddInControllerImpl.cs
- RelatedCurrencyManager.cs
- InfoCardKeyedHashAlgorithm.cs
- MediaElementAutomationPeer.cs
- StorageBasedPackageProperties.cs
- WsdlImporter.cs
- WindowsListView.cs
- DocumentXmlWriter.cs
- FilterFactory.cs
- HttpCookiesSection.cs
- UiaCoreTypesApi.cs
- SafeEventLogWriteHandle.cs
- ToolTipAutomationPeer.cs
- Image.cs
- DataGridViewCell.cs
- CachedBitmap.cs
- FontFamilyIdentifier.cs
- BamlLocalizableResourceKey.cs
- SqlExpander.cs
- Simplifier.cs
- SHA256CryptoServiceProvider.cs
- LocalValueEnumerator.cs
- GlobalizationSection.cs
- Aes.cs
- CompiledQueryCacheEntry.cs
- HexParser.cs
- FileVersion.cs
- StateBag.cs
- ValidationService.cs
- StoreUtilities.cs
- DocumentSequenceHighlightLayer.cs
- QilIterator.cs
- Variable.cs
- DesignTimeTemplateParser.cs
- SmiContextFactory.cs
- CompiledQuery.cs
- ClockGroup.cs
- DataBoundControlAdapter.cs
- BatchParser.cs
- RtType.cs
- EntityDataSourceSelectingEventArgs.cs
- BinaryObjectReader.cs
- DeadCharTextComposition.cs
- Function.cs
- ImportedNamespaceContextItem.cs
- PerfService.cs
- OutputCacheSettingsSection.cs
- JsonDeserializer.cs
- AmbiguousMatchException.cs
- XmlCustomFormatter.cs
- MouseGestureValueSerializer.cs
- DataGridItem.cs
- Lease.cs
- PhysicalAddress.cs
- _OSSOCK.cs
- DataTable.cs
- BrowserDefinition.cs
- ObjectCloneHelper.cs
- SchemaMapping.cs
- NavigateEvent.cs
- FunctionQuery.cs
- ButtonBaseAutomationPeer.cs
- CommandHelpers.cs
- RequestCachePolicy.cs
- HasCopySemanticsAttribute.cs
- ConfigXmlText.cs
- SID.cs