Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Design / ToolboxComponentsCreatedEventArgs.cs / 1305376 / 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
- XmlValidatingReader.cs
- NumberAction.cs
- SQLDateTimeStorage.cs
- EnumerableRowCollection.cs
- RootBrowserWindowAutomationPeer.cs
- CAGDesigner.cs
- StorageMappingItemLoader.cs
- AttributeQuery.cs
- RouteItem.cs
- ReadOnlyNameValueCollection.cs
- XPathAxisIterator.cs
- Mouse.cs
- CodeGeneratorAttribute.cs
- ComponentDispatcher.cs
- MetadataArtifactLoader.cs
- AudioException.cs
- TextParagraphView.cs
- PropertyToken.cs
- HtmlShimManager.cs
- GB18030Encoding.cs
- DoubleCollectionValueSerializer.cs
- SourceInterpreter.cs
- UnsafeMethods.cs
- Point.cs
- XmlWellformedWriter.cs
- GestureRecognitionResult.cs
- ErrorsHelper.cs
- ScrollEvent.cs
- SQLInt16.cs
- ExceptionHandlers.cs
- AnyReturnReader.cs
- SendKeys.cs
- SortExpressionBuilder.cs
- DispatcherTimer.cs
- CurrencyWrapper.cs
- Collection.cs
- ExpressionLexer.cs
- OleDbFactory.cs
- LZCodec.cs
- ColumnHeaderCollectionEditor.cs
- ToolBar.cs
- XhtmlStyleClass.cs
- VisualBrush.cs
- OutputWindow.cs
- Helpers.cs
- storepermissionattribute.cs
- SecurityAccessDeniedException.cs
- DeflateStream.cs
- webbrowsersite.cs
- Delegate.cs
- DataRelation.cs
- SqlDataReader.cs
- ListViewItem.cs
- Ticks.cs
- PartialList.cs
- ColumnMapCopier.cs
- Padding.cs
- BridgeDataReader.cs
- SafeNativeMethodsOther.cs
- ImplicitInputBrush.cs
- UnsignedPublishLicense.cs
- TextDecorationUnitValidation.cs
- LogAppendAsyncResult.cs
- BooleanSwitch.cs
- BamlBinaryReader.cs
- DateTimeFormatInfoScanner.cs
- KeyTime.cs
- SubclassTypeValidator.cs
- dbdatarecord.cs
- Substitution.cs
- URI.cs
- CodeGotoStatement.cs
- _DomainName.cs
- XmlUtil.cs
- StorageSetMapping.cs
- EnvelopedPkcs7.cs
- CheckableControlBaseAdapter.cs
- GreenMethods.cs
- DesignerVerbCollection.cs
- VerificationAttribute.cs
- ObjectTokenCategory.cs
- CodeSubDirectory.cs
- ExpressionPrefixAttribute.cs
- SingleAnimationBase.cs
- VerticalAlignConverter.cs
- WebPartDeleteVerb.cs
- BaseServiceProvider.cs
- WebControlToolBoxItem.cs
- ContainerControl.cs
- CmsUtils.cs
- DataGridItemCollection.cs
- Enum.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- ApplicationActivator.cs
- ElementProxy.cs
- Double.cs
- PropertyGeneratedEventArgs.cs
- DataPointer.cs
- LogManagementAsyncResult.cs
- SignedInfo.cs