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
- ConnectionStringsExpressionBuilder.cs
- SendSecurityHeaderElementContainer.cs
- Classification.cs
- StorageComplexPropertyMapping.cs
- Dispatcher.cs
- AttributeUsageAttribute.cs
- RepeatInfo.cs
- FormViewUpdatedEventArgs.cs
- MatcherBuilder.cs
- LookupBindingPropertiesAttribute.cs
- TextBreakpoint.cs
- SqlDataSourceConfigureSelectPanel.cs
- Root.cs
- ActivityExecutionContext.cs
- ValueQuery.cs
- Substitution.cs
- StateRuntime.cs
- WebEvents.cs
- ByteAnimationUsingKeyFrames.cs
- DropShadowBitmapEffect.cs
- HostedTcpTransportManager.cs
- SerialReceived.cs
- WebPermission.cs
- ItemsPresenter.cs
- DataTableReader.cs
- FastPropertyAccessor.cs
- DefaultAssemblyResolver.cs
- ClientBuildManagerCallback.cs
- WSDualHttpBindingCollectionElement.cs
- EllipseGeometry.cs
- Token.cs
- AtomServiceDocumentSerializer.cs
- EntityConnectionStringBuilder.cs
- CustomPopupPlacement.cs
- AnimationTimeline.cs
- LicenseException.cs
- DBAsyncResult.cs
- InternalCache.cs
- Accessible.cs
- UIElementParaClient.cs
- BitmapEffectInputData.cs
- XmlSchema.cs
- SmtpTransport.cs
- DelegatingConfigHost.cs
- DictionaryEntry.cs
- FunctionDescription.cs
- StylusShape.cs
- BindingElementCollection.cs
- TextCompositionEventArgs.cs
- EntityDataSourceChangingEventArgs.cs
- AuthorizationRule.cs
- ButtonRenderer.cs
- PropertyValidationContext.cs
- PointAnimationUsingKeyFrames.cs
- DesignBindingValueUIHandler.cs
- Lasso.cs
- IFlowDocumentViewer.cs
- ServicePoint.cs
- DateTimeOffsetAdapter.cs
- RpcCryptoRequest.cs
- HeaderCollection.cs
- AddressingVersion.cs
- DescendantQuery.cs
- HebrewCalendar.cs
- UDPClient.cs
- DictionaryEntry.cs
- SpotLight.cs
- PictureBox.cs
- PasswordPropertyTextAttribute.cs
- DashStyle.cs
- ToolStripSystemRenderer.cs
- WriteTimeStream.cs
- _HeaderInfoTable.cs
- SafeProcessHandle.cs
- PointHitTestParameters.cs
- Pkcs7Recipient.cs
- Page.cs
- XmlSchemaException.cs
- IdentityManager.cs
- DispatcherEventArgs.cs
- XmlCDATASection.cs
- AuthenticodeSignatureInformation.cs
- ContainerSelectorActiveEvent.cs
- CopyAttributesAction.cs
- BindingExpressionBase.cs
- EventLogPermissionEntryCollection.cs
- BadImageFormatException.cs
- DataSourceControl.cs
- EntityClassGenerator.cs
- UITypeEditor.cs
- WebPartExportVerb.cs
- XPathAncestorQuery.cs
- ResourceReferenceExpression.cs
- TextRange.cs
- MarkupWriter.cs
- VersionPair.cs
- VisualProxy.cs
- DbConnectionInternal.cs
- InkCanvasSelectionAdorner.cs
- PreservationFileWriter.cs