Export (0) Print
Expand All

RibbonPositionType Enumeration

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

public enum RibbonPositionType

Member nameDescription
AfterOfficeIdPut your control after a built-in control.
BeforeOfficeIdPut your control before a built-in control.
DefaultPut 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.

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: Add Controls to the Backstage View.

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 Office 2010 Help Files: Office Fluent User Interface Control Identifiers.

Show:
© 2014 Microsoft