/// <summary> /// Inserts the specified item at the desired index /// </summary> /// <param name="index">Desired index of the item</param> /// <param name="item">Item to insert</param> public new void Insert(int index, RibbonItem item) { item.MaxSizeMode = RibbonElementSizeMode.Compact; item.SetOwnerGroup(OwnerGroup); base.Insert(index, item); }
/// <summary> /// Adds the specified item to the collection /// </summary> public new void Add(RibbonItem item) { item.MaxSizeMode = RibbonElementSizeMode.Compact; item.SetOwnerGroup(OwnerGroup); base.Add(item); }