RibbonPositionType Enumeration (2007 System)
Specifies the position of a control on the Microsoft Office Menu, a group of controls on a built-in tab, or a tab among built-in or custom tabs.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Enumeration RibbonPositionType
'Usage
Dim instance As RibbonPositionType
public enum RibbonPositionType
public enum class RibbonPositionType
public enum RibbonPositionType
Members
Member name | Description | |
---|---|---|
Default | Put your control last, at the end of the Microsoft Office Menu, tab, or Ribbon. Buttons and groups appear after all of the existing buttons and groups. Custom tabs are added to the end of the tabs list. | |
BeforeOfficeId | Put your control before a built-in control. | |
AfterOfficeId | Put your control after a built-in control. |
Remarks
The value of RibbonPositionType is used by RibbonPosition to specify the position of a Ribbon element in relation to other elements.
You can use the RibbonPositionType to move a custom group into a certain position on a built-in tab. For more information, see How to: Customize a Built-in Tab.
You can use the RibbonPosition to move custom controls in relation to other controls on the Microsoft Office Menu. For more information, see How to: Customize the Microsoft Office Menu.
To specify a particular built-in element, use the OfficeId. A list of Office ID values is available at the Microsoft Download Center Web page 2007 Office System Document: Lists of Control IDs.