ContextMenuStripGroup.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 / Designer / WinForms / System / WinForms / Design / ContextMenuStripGroup.cs / 1 / ContextMenuStripGroup.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 
namespace System.Windows.Forms.Design {
    using System; 
    using System.Collections.Generic; 
    using System.Text;
    using System.Windows.Forms; 

    /// Collection of toolStripItems which can be added as a group to the contextMenuStrip
    /// which is shown by control designer.
    /// 
    internal class ContextMenuStripGroup {
        private List items; 
        private string name; 

        public ContextMenuStripGroup(string name) { 
            this.name = name;
        }

        public List Items { 
            get {
                if (items == null) { 
                    items = new List(); 
                }
                return items; 
            }
        }
    }
} 


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