tangxu
2024-10-14 6cd995b71dfc74d4d96347d0bc535fddf36fa9df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.ComponentModel.Design;
 
namespace System.Windows.Forms
{
    class RibbonOrbMenuItemCollectionEditor
        : CollectionEditor
    {
        public RibbonOrbMenuItemCollectionEditor()
           : base(typeof(RibbonOrbMenuItemCollection))
        {
        }
 
        protected override Type CreateCollectionItemType()
        {
            return typeof(RibbonOrbMenuItem);
        }
 
        protected override Type[] CreateNewItemTypes()
        {
            return new[] {
            typeof(RibbonOrbMenuItem),
            typeof(RibbonSeparator)
         };
        }
    }
}