Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Design / ToolboxComponentsCreatedEventArgs.cs / 1 / ToolboxComponentsCreatedEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Design {
using System;
using System.ComponentModel;
///
///
/// Provides data for the 'ToolboxComponentsCreatedEventArgs' event that occurs
/// when components are added to the toolbox.
///
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ToolboxComponentsCreatedEventArgs : EventArgs {
private readonly IComponent[] comps;
///
///
///
/// Initializes a new instance of the object.
///
///
public ToolboxComponentsCreatedEventArgs(IComponent[] components) {
this.comps = components;
}
///
///
///
/// An array storing the toolbox components.
///
///
public IComponent[] Components {
get {
return (IComponent[])comps.Clone();
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Design {
using System;
using System.ComponentModel;
///
///
/// Provides data for the 'ToolboxComponentsCreatedEventArgs' event that occurs
/// when components are added to the toolbox.
///
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ToolboxComponentsCreatedEventArgs : EventArgs {
private readonly IComponent[] comps;
///
///
///
/// Initializes a new instance of the object.
///
///
public ToolboxComponentsCreatedEventArgs(IComponent[] components) {
this.comps = components;
}
///
///
///
/// An array storing the toolbox components.
///
///
public IComponent[] Components {
get {
return (IComponent[])comps.Clone();
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RepeatButton.cs
- TagMapInfo.cs
- ObjectManager.cs
- TextDecorationCollection.cs
- OdbcParameter.cs
- BitStream.cs
- StreamingContext.cs
- OutOfProcStateClientManager.cs
- Int32Collection.cs
- CellPartitioner.cs
- Win32MouseDevice.cs
- RequestUriProcessor.cs
- Ticks.cs
- CopyNodeSetAction.cs
- RefreshEventArgs.cs
- RunInstallerAttribute.cs
- GridViewEditEventArgs.cs
- ProxyFragment.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Matrix3DConverter.cs
- MenuDesigner.cs
- OutputCacheSettingsSection.cs
- InertiaRotationBehavior.cs
- DataPagerFieldCollection.cs
- IisTraceListener.cs
- AssemblyBuilder.cs
- RequestUriProcessor.cs
- PopupRootAutomationPeer.cs
- DeflateStream.cs
- RenamedEventArgs.cs
- BamlTreeMap.cs
- DataBindingCollectionEditor.cs
- Crc32Helper.cs
- GroupStyle.cs
- XslNumber.cs
- OracleConnectionString.cs
- MulticastDelegate.cs
- StringHandle.cs
- OneOfScalarConst.cs
- ElementMarkupObject.cs
- ConfigurationFileMap.cs
- InputLanguageProfileNotifySink.cs
- SqlNodeAnnotations.cs
- SecurityKeyIdentifier.cs
- UnauthorizedAccessException.cs
- GorillaCodec.cs
- AuthenticationModuleElementCollection.cs
- RijndaelCryptoServiceProvider.cs
- Item.cs
- StringCollection.cs
- WebPartCollection.cs
- WebServiceHandler.cs
- WindowsScroll.cs
- EmptyEnumerable.cs
- activationcontext.cs
- SmiSettersStream.cs
- LinqDataSourceUpdateEventArgs.cs
- RowBinding.cs
- DataGridViewCellMouseEventArgs.cs
- Span.cs
- UInt16.cs
- MetadataImporter.cs
- HttpResponse.cs
- PublisherMembershipCondition.cs
- PathSegment.cs
- Lazy.cs
- XPathNavigatorKeyComparer.cs
- MouseGestureConverter.cs
- HyperLink.cs
- BuilderPropertyEntry.cs
- ZipIOLocalFileBlock.cs
- PropertyDescriptor.cs
- Hash.cs
- StylusEventArgs.cs
- ImmComposition.cs
- DiagnosticsConfiguration.cs
- DeclaredTypeValidator.cs
- CodeConstructor.cs
- HashCodeCombiner.cs
- TimeoutException.cs
- CompiledAction.cs
- Evidence.cs
- XmlLanguageConverter.cs
- HeaderUtility.cs
- SafeFileMappingHandle.cs
- HttpValueCollection.cs
- XmlUtil.cs
- BitmapFrame.cs
- HttpHandlerActionCollection.cs
- EtwTrackingParticipant.cs
- ColorBlend.cs
- TypedTableBaseExtensions.cs
- PagesSection.cs
- Profiler.cs
- ProjectionAnalyzer.cs
- ICollection.cs
- ColorInterpolationModeValidation.cs
- SortDescriptionCollection.cs
- HttpCachePolicy.cs
- TypeElementCollection.cs