Beispiel #1
0
 /// <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);
 }
 /// <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);
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new RibbonPanel
 /// </summary>
 public RibbonPanel()
 {
     _items             = new RibbonItemCollection();
     _sizeMode          = RibbonElementSizeMode.None;
     _flowsTo           = RibbonPanelFlowDirection.Bottom;
     _buttonMoreEnabled = true;
     _buttonMoreVisible = true;
     _items.SetOwnerPanel(this);
 }
 /// <summary>
 /// Creates a new RibbonPanel
 /// </summary>
 public RibbonPanel()
 {
     _items = new RibbonItemCollection();
     _sizeMode = RibbonElementSizeMode.None;
     _flowsTo = RibbonPanelFlowDirection.Bottom;
     _buttonMoreEnabled = true;
     _buttonMoreVisible = true;
     _items.SetOwnerPanel(this);
     _enabled = true;
 }
Beispiel #5
0
 /// <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)
     : this(text, flowsTo, new RibbonItem[] { })
 {
 }
 /// <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)
     : this(text, flowsTo, new RibbonItem[] { })
 {
 }