-
Notifications
You must be signed in to change notification settings - Fork 270
[All hosts] (ribbon) Document scaling behavior #5262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||||||
--- | ||||||||||
title: Basic concepts for add-in commands | ||||||||||
description: Learn how to add custom ribbon buttons and menu items to Excel, Outlook, PowerPoint, and Word as part of an Office Add-in. | ||||||||||
ms.date: 06/27/2025 | ||||||||||
ms.date: 07/15/2025 | ||||||||||
ms.topic: overview | ||||||||||
ms.localizationpriority: high | ||||||||||
--- | ||||||||||
|
@@ -39,15 +39,15 @@ There are two types of add-in commands, based on the kind of action that the com | |||||||||
|
||||||||||
## Location of add-in commands | ||||||||||
|
||||||||||
When a user installs an add-in, the add-in's commands are found on the ribbon, in a built-in Office tab or a custom tab that is specified in the manifest. (You can also put add-in commands on a [custom contextual tab](#contextual-tabs) that your add-in code defines at runtime.) They appear in the UI as a button or an item in a drop-down menu. | ||||||||||
When a user installs an add-in, the add-in's commands are found on the ribbon, in a built-in Office tab or a custom tab that is specified in the manifest. (You can also put add-in commands on a [custom contextual tab](#contextual-tabs) that your add-in code defines at runtime.) They appear in the UI as a button or an item in a dropdown menu. | ||||||||||
|
||||||||||
> [!NOTE] | ||||||||||
> On certain Outlook platforms, the commands are on an action bar rather than the ribbon. | ||||||||||
|
||||||||||
For add-in commands that appear on the ribbon, if you're using the simplified ribbon layout, the add-in name is removed from the app bar. Only the add-in command button on the ribbon remains. | ||||||||||
|
||||||||||
As the ribbon or action bar gets more crowded, add-in commands are displayed in the overflow menu. Commands for the same add-in are usually grouped together. | ||||||||||
|
||||||||||
In Office on the web, if you're using the single-line or simplified ribbon layout, the add-in name isn't shown on the ribbon. Only the add-in's command icon is shown. | ||||||||||
|
||||||||||
### Excel, PowerPoint, and Word | ||||||||||
|
||||||||||
The following shows an example of add-in commands in a custom group on the **Data** tab of the Excel ribbon. | ||||||||||
|
@@ -58,12 +58,29 @@ The following shows an example of add-in commands in a custom group on the **Dat | |||||||||
|
||||||||||
For Outlook, when you want an add-in command on a built-in ribbon tab, rather than creating your own, the command will appear on the default tab based on the platform and current Outlook mode. For guidance, see [Use add-ins in Outlook](https://support.microsoft.com/office/1ee261f9-49bf-4ba6-b3e2-2ba7bcab64c8). | ||||||||||
|
||||||||||
### Drop-down menu | ||||||||||
### Dropdown menu | ||||||||||
|
||||||||||
A drop-down menu add-in command defines a static list of items. The menu can be any mix of items that execute a function or that open a task pane. Submenus aren't supported. | ||||||||||
A dropdown menu add-in command defines a static list of items. The menu can be any mix of items that execute a function or that open a task pane. Submenus aren't supported. | ||||||||||
|
||||||||||
 | ||||||||||
|
||||||||||
### Grouped add-in commands on the ribbon | ||||||||||
|
||||||||||
Multiple add-in commands can be grouped together on the ribbon. A group must contain at least one add-in command in the form of a button or a dropdown menu. In Office on Windows and on Mac, the label and icon of a button or dropdown menu are usually shown for add-in commands in a group. However, the icon size and label visibility may vary due to the following factors that constrain space. | ||||||||||
|
||||||||||
- The number of add-in commands in the group. | ||||||||||
- The size of the Office client window. | ||||||||||
|
||||||||||
If the client window is maximized and there are more than three controls in a group, the label of each control is shown, but the size of its icon may vary (some are shown as 16 x 16 pixels while others are shown as 32 x 32 pixels). | ||||||||||
|
||||||||||
When there are two or more add-in commands in a group and space becomes limited, the following adjustments are made to how the add-in commands are displayed. These changes are applied to the groups of add-in commands from right to left across the ribbon in the following sequence. | ||||||||||
|
||||||||||
1. Small icons (16 x 16 pixels) and labels are shown for each add-in command in a group. | ||||||||||
1. Only small icons are shown. | ||||||||||
1. The group is displayed as a dropdown menu instead of showing individual add-in commands on the ribbon. A scroll slider icon also appears on the ribbon, so that you can scroll through the ribbon. | ||||||||||
Comment on lines
+79
to
+80
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Since this is an ordered sequence, consider numbering the steps as 1, 2, 3 instead of repeating "1." to improve reader clarity.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||
|
||||||||||
In Office on the web, the icon size and label visibility of controls in groups don't change as the browser window is resized. The scroll slider icon is simply shown on the ribbon. | ||||||||||
|
||||||||||
## Command capabilities | ||||||||||
|
||||||||||
The following command capabilities are currently supported. | ||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The term "dropdown" is used inconsistently in the doc (previously hyphenated as "drop-down"). Consider choosing a single style and applying it consistently throughout.
Copilot uses AI. Check for mistakes.