Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Design / ToolboxItemCollection.cs / 1 / ToolboxItemCollection.cs
// ------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// -----------------------------------------------------------------------------
//
namespace System.Drawing.Design {
using System;
using System.Collections;
///
///
///
/// A collection that stores objects.
///
///
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public sealed class ToolboxItemCollection : ReadOnlyCollectionBase {
///
///
///
/// Initializes a new instance of based on another .
///
///
public ToolboxItemCollection(ToolboxItemCollection value) {
InnerList.AddRange(value);
}
///
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public ToolboxItemCollection(ToolboxItem[] value) {
InnerList.AddRange(value);
}
///
///
/// Represents the entry at the specified index of the .
///
public ToolboxItem this[int index] {
get {
return ((ToolboxItem)(InnerList[index]));
}
}
///
///
/// Gets a value indicating whether the
/// contains the specified .
///
public bool Contains(ToolboxItem value) {
return InnerList.Contains(value);
}
///
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(ToolboxItem[] array, int index) {
InnerList.CopyTo(array, index);
}
///
///
/// Returns the index of a in
/// the .
///
public int IndexOf(ToolboxItem value) {
return InnerList.IndexOf(value);
}
}
}
// 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
- path.cs
- BindUriHelper.cs
- SafeTimerHandle.cs
- ExpressionTextBox.xaml.cs
- HeaderedContentControl.cs
- TransformGroup.cs
- MaterializeFromAtom.cs
- StructuredProperty.cs
- TypeExtension.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- CultureTableRecord.cs
- PersonalizableAttribute.cs
- DatePickerTextBox.cs
- InternalException.cs
- Calendar.cs
- RequiredAttributeAttribute.cs
- ClientBuildManagerCallback.cs
- HostProtectionException.cs
- WebPartUserCapability.cs
- Int32CAMarshaler.cs
- ProtocolsSection.cs
- ContextMenu.cs
- EFTableProvider.cs
- CodeMethodReturnStatement.cs
- WebPartExportVerb.cs
- WebPartHelpVerb.cs
- WebPartConnectionsConfigureVerb.cs
- Internal.cs
- SingleStorage.cs
- MergeFailedEvent.cs
- OracleTimeSpan.cs
- NotifyParentPropertyAttribute.cs
- ScriptRef.cs
- ProfileBuildProvider.cs
- CompilerParameters.cs
- XslVisitor.cs
- Decorator.cs
- Converter.cs
- LowerCaseStringConverter.cs
- SimpleType.cs
- ChtmlImageAdapter.cs
- QueryOptionExpression.cs
- WorkflowRuntime.cs
- MenuAutomationPeer.cs
- Rights.cs
- ReturnValue.cs
- CultureTable.cs
- CustomCredentialPolicy.cs
- DesignParameter.cs
- ClockController.cs
- PrivilegeNotHeldException.cs
- DateBoldEvent.cs
- HijriCalendar.cs
- PopupEventArgs.cs
- EntityContainerEmitter.cs
- FileDialog_Vista_Interop.cs
- UidManager.cs
- TimerElapsedEvenArgs.cs
- PropertyInformation.cs
- RuleAction.cs
- JumpItem.cs
- MarshalByValueComponent.cs
- QilFactory.cs
- WebPartMenu.cs
- AVElementHelper.cs
- LinkConverter.cs
- CodeDirectionExpression.cs
- DetailsView.cs
- ScriptIgnoreAttribute.cs
- FixedSOMLineCollection.cs
- TypeLoader.cs
- X509Utils.cs
- ConfigurationValues.cs
- EventItfInfo.cs
- SafeNativeMethods.cs
- RoleExceptions.cs
- ObjectReaderCompiler.cs
- SourceFileInfo.cs
- MetafileHeader.cs
- TextWriterTraceListener.cs
- HashMembershipCondition.cs
- BuildProvider.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- ListBase.cs
- EventProviderClassic.cs
- Int64.cs
- ShaderRenderModeValidation.cs
- DataGridItemEventArgs.cs
- Util.cs
- RepeaterItemCollection.cs
- HotCommands.cs
- AnnotationAuthorChangedEventArgs.cs
- CurrentTimeZone.cs
- ServerIdentity.cs
- LocationSectionRecord.cs
- ImageMapEventArgs.cs
- DataSourceViewSchemaConverter.cs
- CommonObjectSecurity.cs
- mansign.cs
- sitestring.cs