Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CommonUI / System / Drawing / Design / CategoryNameCollection.cs / 1 / CategoryNameCollection.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 CategoryNameCollection : ReadOnlyCollectionBase {
///
///
///
/// Initializes a new instance of based on another .
///
///
public CategoryNameCollection(CategoryNameCollection value) {
InnerList.AddRange(value);
}
///
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CategoryNameCollection(String[] value) {
InnerList.AddRange(value);
}
///
///
/// Represents the entry at the specified index of the .
///
public string this[int index] {
get {
return ((string)(InnerList[index]));
}
}
///
///
/// Gets a value indicating whether the
/// contains the specified .
///
public bool Contains(string value) {
return InnerList.Contains(value);
}
///
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(String[] array, int index) {
InnerList.CopyTo(array, index);
}
///
///
/// Returns the index of a in
/// the .
///
public int IndexOf(string 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 CategoryNameCollection : ReadOnlyCollectionBase {
///
///
///
/// Initializes a new instance of based on another .
///
///
public CategoryNameCollection(CategoryNameCollection value) {
InnerList.AddRange(value);
}
///
///
///
/// Initializes a new instance of containing any array of objects.
///
///
public CategoryNameCollection(String[] value) {
InnerList.AddRange(value);
}
///
///
/// Represents the entry at the specified index of the .
///
public string this[int index] {
get {
return ((string)(InnerList[index]));
}
}
///
///
/// Gets a value indicating whether the
/// contains the specified .
///
public bool Contains(string value) {
return InnerList.Contains(value);
}
///
///
/// Copies the values to a one-dimensional instance at the
/// specified index.
///
public void CopyTo(String[] array, int index) {
InnerList.CopyTo(array, index);
}
///
///
/// Returns the index of a in
/// the .
///
public int IndexOf(string 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
- ListItemCollection.cs
- AutomationIdentifierGuids.cs
- LogicalExpr.cs
- ConfigurationManagerHelper.cs
- embossbitmapeffect.cs
- Annotation.cs
- UriScheme.cs
- GlyphElement.cs
- HostUtils.cs
- IdentitySection.cs
- PartialCachingAttribute.cs
- ExternalFile.cs
- Cursor.cs
- DataGridViewRowStateChangedEventArgs.cs
- ColumnMap.cs
- FileVersion.cs
- TokenBasedSet.cs
- SourceExpressionException.cs
- SecurityKeyIdentifierClause.cs
- RequestQueryParser.cs
- StyleCollection.cs
- DirectoryObjectSecurity.cs
- XmlDataImplementation.cs
- SymDocumentType.cs
- HttpModuleCollection.cs
- TimeSpanValidator.cs
- Attribute.cs
- SemanticResultValue.cs
- RouteValueExpressionBuilder.cs
- DelayedRegex.cs
- VScrollProperties.cs
- SplineKeyFrames.cs
- TimeSpanStorage.cs
- NonParentingControl.cs
- BmpBitmapDecoder.cs
- WhitespaceReader.cs
- DbBuffer.cs
- SchemaDeclBase.cs
- UnmanagedMarshal.cs
- TextTreeRootNode.cs
- LinqDataSourceStatusEventArgs.cs
- BamlLocalizer.cs
- ListControlDataBindingHandler.cs
- DataGridViewButtonCell.cs
- Authorization.cs
- ObjectTypeMapping.cs
- ColorTransform.cs
- SeekStoryboard.cs
- PropertyItem.cs
- TableCellAutomationPeer.cs
- CodeDomDesignerLoader.cs
- DetailsViewRow.cs
- MouseGestureValueSerializer.cs
- XmlSchemaComplexContentExtension.cs
- PropertyDescriptorGridEntry.cs
- Mappings.cs
- formatter.cs
- RoutedEventConverter.cs
- XmlTextEncoder.cs
- CodeDelegateInvokeExpression.cs
- XPathNavigatorReader.cs
- CleanUpVirtualizedItemEventArgs.cs
- FunctionUpdateCommand.cs
- ObjectStateEntry.cs
- ConfigurationStrings.cs
- ConsumerConnectionPointCollection.cs
- LinkConverter.cs
- NamedPipeHostedTransportConfiguration.cs
- SynchronizationContext.cs
- WeakEventManager.cs
- LineBreakRecord.cs
- TimestampInformation.cs
- UnsafePeerToPeerMethods.cs
- SecuritySessionFilter.cs
- StatusBarDrawItemEvent.cs
- ToolStripSplitStackLayout.cs
- GridViewUpdateEventArgs.cs
- ExpressionConverter.cs
- StorageComplexTypeMapping.cs
- MemberHolder.cs
- PointIndependentAnimationStorage.cs
- ObfuscateAssemblyAttribute.cs
- CompiledQueryCacheEntry.cs
- ComAdminWrapper.cs
- IQueryable.cs
- XPathItem.cs
- MsmqSecureHashAlgorithm.cs
- SqlGenericUtil.cs
- HMACSHA1.cs
- DataServiceSaveChangesEventArgs.cs
- HttpResponseInternalWrapper.cs
- MenuItemCollectionEditorDialog.cs
- ObjectStateManager.cs
- NativeMethods.cs
- DataKeyArray.cs
- _Rfc2616CacheValidators.cs
- VirtualDirectoryMappingCollection.cs
- HttpPostedFile.cs
- Image.cs
- DataRowCollection.cs