OfficeMenu element
Defines a collection of controls to be added to the Office context menu. Applies to Word, Excel, PowerPoint, and OneNote add-ins.
Add-in type: Task pane
Valid only in these VersionOverrides schemas:
- Taskpane 1.0
For more information, see Version overrides in the manifest.
Associated with these requirement sets:
Attributes
Attribute | Required | Description |
---|---|---|
xsi:type | Yes | The type of OfficeMenu being defined. |
Child elements
Element | Required | Description |
---|---|---|
Control of type Menu | Yes | A collection of one or more Control objects. |
xsi:type
Specifies a built-in menu of the Office client application on which to add this Office Add-in.
ContextMenuText
- Displays the item on the context menu when text is selected and the user opens the context menu (right-clicks) on the selected text. Applies to Word, Excel, PowerPoint, and OneNote.ContextMenuCell
- Displays the item on the context menu when the user opens the context menu (right-clicks) on a cell on the spreadsheet. Applies to Excel.
Example
<OfficeMenu id="ContextMenuCell">
<Control xsi:type="Menu" id="Contoso.myMenu">
<Label resid="residLabel3" />
<Supertip>
<Title resid="residLabel" />
<Description resid="residToolTip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="icon1_16x16" />
<bt:Image size="32" resid="icon1_32x32" />
<bt:Image size="80" resid="icon1_80x80" />
</Icon>
<Items>
<Item id="myMenuItemID">
<Label resid="residLabel3"/>
<Supertip>
<Title resid="residLabel" />
<Description resid="residToolTip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="icon1_16x16" />
<bt:Image size="32" resid="icon1_32x32" />
<bt:Image size="80" resid="icon1_80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="residTaskpaneUrl2" />
</Action>
</Item>
</Items>
</Control>
</OfficeMenu>
Feedback
Submit and view feedback for