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
- TreeNode.cs
- BitmapEncoder.cs
- ValidationErrorCollection.cs
- WebPartEditVerb.cs
- AssociationProvider.cs
- TraceShell.cs
- SingleStorage.cs
- SaveFileDialog.cs
- RegexCompiler.cs
- DataColumnPropertyDescriptor.cs
- AuditLevel.cs
- GridViewColumnCollectionChangedEventArgs.cs
- OrderedDictionary.cs
- LocalizationCodeDomSerializer.cs
- RectConverter.cs
- XmlNodeChangedEventArgs.cs
- PageCatalogPart.cs
- DataContractAttribute.cs
- HiddenFieldPageStatePersister.cs
- SqlDataSourceConfigureSortForm.cs
- RepeaterItemEventArgs.cs
- DiscriminatorMap.cs
- FormattedTextSymbols.cs
- CodeGroup.cs
- ExtensionSurface.cs
- QueryOutputWriter.cs
- OdbcPermission.cs
- WeakRefEnumerator.cs
- ObjectAnimationUsingKeyFrames.cs
- baseshape.cs
- CodeTypeMemberCollection.cs
- ServiceHttpHandlerFactory.cs
- HttpCacheVary.cs
- SkinBuilder.cs
- ProxyWebPart.cs
- Html32TextWriter.cs
- ListManagerBindingsCollection.cs
- UnsafeNativeMethods.cs
- TypeUtil.cs
- SecurityCriticalDataForSet.cs
- IssuanceLicense.cs
- SafeViewOfFileHandle.cs
- Interlocked.cs
- InstalledFontCollection.cs
- TextBounds.cs
- DiscoveryServerProtocol.cs
- DeploymentExceptionMapper.cs
- InkCanvasSelectionAdorner.cs
- NameTable.cs
- Tokenizer.cs
- AnonymousIdentificationSection.cs
- RowBinding.cs
- EmptyImpersonationContext.cs
- SqlMethodAttribute.cs
- BehaviorDragDropEventArgs.cs
- LocalIdKeyIdentifierClause.cs
- InstanceDescriptor.cs
- DataGridAutoFormatDialog.cs
- FormViewDeleteEventArgs.cs
- XmlDataDocument.cs
- SqlConnectionPoolProviderInfo.cs
- FunctionMappingTranslator.cs
- MultiAsyncResult.cs
- ExclusiveTcpListener.cs
- ImmComposition.cs
- PasswordRecoveryDesigner.cs
- Axis.cs
- BuilderPropertyEntry.cs
- XmlResolver.cs
- ImageCollectionEditor.cs
- RelOps.cs
- SqlDataReaderSmi.cs
- RtfControlWordInfo.cs
- KeySpline.cs
- LinqToSqlWrapper.cs
- AdapterUtil.cs
- XPathArrayIterator.cs
- ModelPerspective.cs
- QueryResponse.cs
- TreeViewItemAutomationPeer.cs
- PrePostDescendentsWalker.cs
- WebControlsSection.cs
- XmlQueryCardinality.cs
- StylusLogic.cs
- SHA512Cng.cs
- SchemaImporterExtensionElement.cs
- PassportPrincipal.cs
- ReadOnlyDataSourceView.cs
- BaseParaClient.cs
- HttpGetClientProtocol.cs
- uribuilder.cs
- XamlGridLengthSerializer.cs
- WinFormsSpinner.cs
- DataViewSettingCollection.cs
- LinqDataSourceUpdateEventArgs.cs
- ListViewItem.cs
- NetworkInformationPermission.cs
- Set.cs
- KnowledgeBase.cs
- MemberHolder.cs