RibbonBox.BoxStyle Property
Gets a RibbonBoxStyle value that indicates whether controls placed on this RibbonBox will be placed horizontally or vertically.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Property BoxStyle As RibbonBoxStyle
RibbonBoxStyle BoxStyle { get; set; }
Property Value
Type: Microsoft.Office.Tools.Ribbon.RibbonBoxStyle
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace