Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XmlDataDocument.cs
- ThicknessAnimationUsingKeyFrames.cs
- _WinHttpWebProxyDataBuilder.cs
- WinInet.cs
- ObjectContextServiceProvider.cs
- ReferencedCategoriesDocument.cs
- CharacterMetricsDictionary.cs
- DesignerGenericWebPart.cs
- login.cs
- GlobalizationSection.cs
- XmlLinkedNode.cs
- ExpressionPrinter.cs
- AddInControllerImpl.cs
- TextPattern.cs
- AssemblyAttributesGoHere.cs
- PowerStatus.cs
- ActivityBuilderXamlWriter.cs
- DbParameterCollectionHelper.cs
- base64Transforms.cs
- DSACryptoServiceProvider.cs
- CryptoConfig.cs
- MemberHolder.cs
- ConfigXmlText.cs
- ControlPropertyNameConverter.cs
- IisTraceWebEventProvider.cs
- DocumentXmlWriter.cs
- FamilyMap.cs
- SSmlParser.cs
- RegexCharClass.cs
- SqlNodeAnnotations.cs
- CodeAttributeArgument.cs
- XpsPartBase.cs
- ImageKeyConverter.cs
- TrackBarRenderer.cs
- HttpResponseWrapper.cs
- MULTI_QI.cs
- _SSPIWrapper.cs
- LoginUtil.cs
- DbConnectionStringCommon.cs
- CryptoApi.cs
- ThicknessKeyFrameCollection.cs
- CompiledQueryCacheKey.cs
- ContentIterators.cs
- storepermissionattribute.cs
- RuleConditionDialog.cs
- RunInstallerAttribute.cs
- DataSourceXmlSerializer.cs
- SiteOfOriginContainer.cs
- AccessViolationException.cs
- ToolStripPanelCell.cs
- datacache.cs
- LineServices.cs
- DesignTimeType.cs
- COM2TypeInfoProcessor.cs
- EncryptedKey.cs
- Int32.cs
- ConvertBinder.cs
- ClientConvert.cs
- PartitionerStatic.cs
- TextEffect.cs
- AttachedPropertyMethodSelector.cs
- ToolStripSplitButton.cs
- TextAutomationPeer.cs
- DurationConverter.cs
- SqlTypesSchemaImporter.cs
- PermissionSetTriple.cs
- ParallelTimeline.cs
- CancellationState.cs
- CustomAttributeFormatException.cs
- ZoneLinkButton.cs
- COM2Properties.cs
- ProcessRequestAsyncResult.cs
- WorkItem.cs
- CharacterMetricsDictionary.cs
- BaseTemplateParser.cs
- COM2PropertyBuilderUITypeEditor.cs
- OleDbStruct.cs
- SByteStorage.cs
- ValidationEventArgs.cs
- Bold.cs
- MarkupExtensionParser.cs
- UniqueID.cs
- TextServicesDisplayAttribute.cs
- TreeViewCancelEvent.cs
- MessageContractExporter.cs
- DbResourceAllocator.cs
- DataViewSetting.cs
- LoginCancelEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- MouseOverProperty.cs
- LateBoundBitmapDecoder.cs
- NamedPipeChannelListener.cs
- GcHandle.cs
- GridViewRowPresenter.cs
- NativeObjectSecurity.cs
- PropertyCollection.cs
- TabControlEvent.cs
- ApplicationHost.cs
- SchemaSetCompiler.cs
- HtmlTextViewAdapter.cs