/// <summary> /// Creates a new RibbonPanel with the specified text and panel flow direction /// </summary> /// <param name="text">Text of the panel</param> /// <param name="flowsTo">Flow direction of the content items</param> public RibbonPanel(string text, RibbonPanelFlowDirection flowsTo, IEnumerable <RibbonItem> items) : this() { _text = text; _flowsTo = flowsTo; _items.AddRange(items); }
public RibbonButtonList(IEnumerable <RibbonButton> buttons, IEnumerable <RibbonItem> dropDownItems) : this() { if (buttons != null) { List <RibbonButton> items = new List <RibbonButton>(buttons); _buttons.AddRange(items.ToArray()); } if (dropDownItems != null) { _dropDownItems.AddRange(dropDownItems); } }