Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <summary>
 /// Sets the value of the OwnerList property
 /// </summary>
 /// <param name="ownerList"></param>
 internal virtual void SetOwnerGroup(RibbonItemGroup ownerGroup)
 {
     _ownerItem = ownerGroup;
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <summary>
 /// Sets the value of the <see cref="OwnerItem"/> property
 /// </summary>
 /// <param name="item"></param>
 internal virtual void SetOwnerItem(RibbonItem item)
 {
     _ownerItem = item;
 }