Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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.
//
// -----------------------------------------------------------------------------
//
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoleGroupCollectionEditor.cs
- AssemblyLoader.cs
- UriSchemeKeyedCollection.cs
- WinFormsUtils.cs
- PagedControl.cs
- XmlName.cs
- ObjectDataSourceSelectingEventArgs.cs
- GridViewRow.cs
- PrintControllerWithStatusDialog.cs
- ConstraintCollection.cs
- IApplicationTrustManager.cs
- Processor.cs
- EntitySqlQueryCacheEntry.cs
- ConfigurationStrings.cs
- httpstaticobjectscollection.cs
- InvalidAsynchronousStateException.cs
- SingleKeyFrameCollection.cs
- GeneralTransformGroup.cs
- EntityReference.cs
- Graphics.cs
- DictionaryKeyPropertyAttribute.cs
- SystemIPAddressInformation.cs
- PeerCredential.cs
- ReadOnlyDataSourceView.cs
- Panel.cs
- Matrix.cs
- TransformerTypeCollection.cs
- BaseTemplateParser.cs
- DataBindingHandlerAttribute.cs
- JavaScriptObjectDeserializer.cs
- DataTableClearEvent.cs
- SqlTypeConverter.cs
- DefaultValueAttribute.cs
- ScrollChrome.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XmlSchemaAttributeGroup.cs
- XmlEntity.cs
- WebPartExportVerb.cs
- PerformanceCounterManager.cs
- ValuePattern.cs
- XPathItem.cs
- SelectedGridItemChangedEvent.cs
- ADConnectionHelper.cs
- SqlDependency.cs
- XmlSignificantWhitespace.cs
- ToolStripLabel.cs
- FormsAuthenticationCredentials.cs
- EdgeModeValidation.cs
- WindowsSlider.cs
- OleDbRowUpdatedEvent.cs
- Compiler.cs
- AsymmetricSignatureFormatter.cs
- BaseComponentEditor.cs
- Qualifier.cs
- CodeStatement.cs
- localization.cs
- SynchronousReceiveBehavior.cs
- DocumentEventArgs.cs
- SerialPinChanges.cs
- TextParagraphProperties.cs
- PrimitiveXmlSerializers.cs
- CustomExpression.cs
- UnsafeNativeMethods.cs
- LassoSelectionBehavior.cs
- ReachDocumentSequenceSerializer.cs
- XPathDocumentIterator.cs
- FileNotFoundException.cs
- CombinedGeometry.cs
- ErrorFormatter.cs
- ImageMap.cs
- EntityWrapper.cs
- VisualTreeUtils.cs
- SimpleType.cs
- Authorization.cs
- PersistenceTask.cs
- CellCreator.cs
- BinHexDecoder.cs
- HtmlInputPassword.cs
- PackageRelationship.cs
- GlobalizationAssembly.cs
- TdsParameterSetter.cs
- PostBackOptions.cs
- EntityKeyElement.cs
- GeometryHitTestParameters.cs
- TagPrefixInfo.cs
- IEnumerable.cs
- _TimerThread.cs
- WebPartsPersonalization.cs
- LocatorBase.cs
- StylusEditingBehavior.cs
- ForeignKeyConstraint.cs
- CodeNamespaceCollection.cs
- BooleanFunctions.cs
- BindingSource.cs
- SqlFunctionAttribute.cs
- Geometry.cs
- Missing.cs
- StringUtil.cs
- Rotation3D.cs
- DebugViewWriter.cs