DesignerActionListCollection.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / DesignerActionListCollection.cs / 1 / DesignerActionListCollection.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.ComponentModel.Design { 
    using System; 
    using System.Collections;
    using System.Diagnostics; 

    /// 
    /// 
    ///    [To be supplied.] 
    /// 
    [System.Runtime.InteropServices.ComVisible(true)] 
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] 
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
    public class DesignerActionListCollection : CollectionBase { 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        public DesignerActionListCollection() { 
        } 

        internal DesignerActionListCollection(DesignerActionList actionList) { 
            this.Add(actionList);
        }

        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        public DesignerActionListCollection(DesignerActionList[] value) {
            AddRange(value); 
        }

        /// 
        ///  
        ///    [To be supplied.]
        ///  
        public DesignerActionList this[int index] { 
            get {
                return (DesignerActionList)(List[index]); 
            }
            set {
                List[index] = value;
            } 
        }
 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public int Add(DesignerActionList value) {
            return List.Add(value);
        } 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public void AddRange(DesignerActionList[] value) { 
            if (value == null) {
                throw new ArgumentNullException("value");
            }
            for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) { 
                this.Add(value[i]);
            } 
        } 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public void AddRange(DesignerActionListCollection value) {
            if (value == null) { 
                throw new ArgumentNullException("value");
            } 
            int currentCount = value.Count; 
            for (int i = 0; i < currentCount; i = ((i) + (1))) {
                this.Add(value[i]); 
            }
        }
        /// 
        ///  
        ///    [To be supplied.]
        ///  
        public void Insert(int index, DesignerActionList value) { 
            List.Insert(index, value);
        } 
        /// 
        /// 
        ///    [To be supplied.]
        ///  
        public int IndexOf(DesignerActionList value) {
            return List.IndexOf(value); 
        } 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        public bool Contains(DesignerActionList value) {
            return List.Contains(value); 
        }
        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public void Remove(DesignerActionList value) {
            List.Remove(value);
        }
        ///  
        /// 
        ///    [To be supplied.] 
        ///  
        public void CopyTo(DesignerActionList[] array, int index) {
            List.CopyTo(array, index); 
        }
        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        protected override void OnSet(int index, object oldValue, object newValue) { 
        } 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        protected override void OnInsert(int index, object value) {
        } 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        protected override void OnClear() { 
        }
        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        protected override void OnRemove(int index, object value) { 
        } 
        /// 
        ///  
        ///    [To be supplied.]
        /// 
        protected override void OnValidate(object value) {
            Debug.Assert(value != null, "Don't add null actionlist!"); 
        }
 
    } 
}
 


// 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