共用方式為


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)

Syntax

'Declaration
Public Enumeration RibbonPositionType
public enum RibbonPositionType

Members

Member name Description
AfterOfficeId Put your control after a built-in control.
BeforeOfficeId Put your control before a built-in control.
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.

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.

See Also

Reference

Microsoft.Office.Tools.Ribbon Namespace