Sdílet prostřednictvím


RibbonPositionType Enum

Definition

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.

public enum class RibbonPositionType
public enum RibbonPositionType
type RibbonPositionType = 
Public Enum RibbonPositionType
Inheritance
RibbonPositionType

Fields

Name Value Description
Default 0

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 1

Put your control before a built-in control.

AfterOfficeId 2

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: 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.

Applies to