RibbonBox.BoxStyle Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Public Property BoxStyle As RibbonBoxStyle
'Usage
Dim instance As RibbonBox 
Dim value As RibbonBoxStyle 

value = instance.BoxStyle

instance.BoxStyle = value
public RibbonBoxStyle BoxStyle { get; set; }
public:
property RibbonBoxStyle BoxStyle {
    RibbonBoxStyle get ();
    void set (RibbonBoxStyle value);
}
public function get BoxStyle () : RibbonBoxStyle 
public function set BoxStyle (value : RibbonBoxStyle)

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

See Also

Reference

RibbonBox Class

RibbonBox Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview