RibbonBox.BoxStyle Property

Definition

Gets a RibbonBoxStyle value that indicates whether controls placed on this RibbonBox will be placed horizontally or vertically.

public:
 property Microsoft::Office::Tools::Ribbon::RibbonBoxStyle BoxStyle { Microsoft::Office::Tools::Ribbon::RibbonBoxStyle get(); void set(Microsoft::Office::Tools::Ribbon::RibbonBoxStyle value); };
public Microsoft.Office.Tools.Ribbon.RibbonBoxStyle BoxStyle { get; set; }
member this.BoxStyle : Microsoft.Office.Tools.Ribbon.RibbonBoxStyle with get, set
Public Property BoxStyle As RibbonBoxStyle

Property Value

A RibbonBoxStyle enumeration value that indicates how this BoxStyle arranges controls placed on it.

Remarks

This property can be set at run time only under certain conditions. For more information, see Ribbon Object Model Overview.

The Ribbon Designer arranges controls dropped onto a RibbonBox differently depending on the value of the BoxStyle property:

  • Horizontal specifies that controls are placed beside one another to the left and right.

  • Vertical specifies that controls are placed above and below one another. If there is not enough room to display all the controls on this RibbonBox in one column, additional columns are used.

Applies to