共用方式為


Office Fluent User Interface Extensibility for Outlook

Microsoft Office Fluent user interface (UI) extensibility refers to the mechanism that supports the programmatic customization of the Office Fluent UI in Microsoft Office applications. Microsoft Outlook expands user interface extensibility beyond the ribbons in the explorer and inspector windows to include other components of the Outlook UI, such as the following:

  • Microsoft Office Backstage view

  • Contextual tabs

  • New items menus

  • Shortcut menus

Add-ins implement the IRibbonExtensibility interface to extend the Outlook UI. To customize a part of the UI, specify your customizations in an XML markup file that complies with the schema definition for Office Fluent UI extensibility. Office calls the IRibbonExtensibility.GetCustomUI method, specifying a ribbon ID to load the XML that describes your customizations for the part of the Outlook UI that matches the ribbon ID. As a result of the XML markup, your add-in runs callback procedures that execute the custom actions that are associated with commands in the custom UI.

Unlike other Office applications such as Microsoft Word or Microsoft Excel, you cannot customize the ribbon by using Visual Basic for Applications in Outlook. To programmatically customize the UI in Outlook, you must write an add-in. You can update an existing add-in or write an add-in that only targets Outlook. The add-in can be native or managed. Outlook does not support the customization of the ribbon by using Microsoft Office Open XML Format Files.

For more information and examples of different ways to customize the Outlook UI, see Extending the User Interface in Outlook 2010 on the MSDN Web site.

See Also

Concepts

Customizing Shortcut Menus

Updating Earlier Code for CommandBars

Implementing the IRibbonExtensibility Interface

Overview of Customizing the Ribbon