CategoryNameCollection.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK